Fix roster key issue for non-JID keys.
This commit is contained in:
@@ -144,6 +144,9 @@ class RosterNode(object):
|
|||||||
"""
|
"""
|
||||||
if isinstance(jid, JID):
|
if isinstance(jid, JID):
|
||||||
key = jid.bare
|
key = jid.bare
|
||||||
|
else:
|
||||||
|
key = jid
|
||||||
|
|
||||||
state = {'name': name,
|
state = {'name': name,
|
||||||
'groups': groups or [],
|
'groups': groups or [],
|
||||||
'from': afrom,
|
'from': afrom,
|
||||||
|
|||||||
Reference in New Issue
Block a user