Skip to content
Snippets Groups Projects
Commit 0497a1be authored by Anaël Verrier's avatar Anaël Verrier
Browse files

* do not stock anymore groupchat presence into NonBlockingRoster. Fixes #5160

parent 5f55a54e
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ Simple roster implementation. Can be used though for different tasks like
mass-renaming of contacts.
'''
from protocol import JID, Iq, Presence, Node, NodeProcessed, NS_ROSTER
from protocol import JID, Iq, Presence, Node, NodeProcessed, NS_MUC_USER, NS_ROSTER
from plugin import PlugIn
import logging
......@@ -94,6 +94,8 @@ class NonBlockingRoster(PlugIn):
def PresenceHandler(self,dis,pres):
''' Presence tracker. Used internally for setting items' resources state in
internal roster representation. '''
if pres.getTag('x', namespace=NS_MUC_USER):
return
jid=pres.getFrom()
if not jid:
# If no from attribue, it's from server
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment