Fix roster key issue for non-JID keys.
This commit is contained in:
parent
86d8736dcc
commit
3672856ab4
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user