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