Skip to content
Snippets Groups Projects
Commit a3fb1bac authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

it's possible that we don't have the jid of a contact in gc

parent 1c706520
No related branches found
No related tags found
No related merge requests found
......@@ -175,6 +175,8 @@ def remove_user(self, user, account):
def get_appropriate_state_images(self, jid):
'''check jid and return the appropriate state images dict'''
if not jid: # we don't have the jid of the contact (in gc)
state_images = self.jabber_state_images
if jid.find('@aim.') != -1:
state_images = self.transports_state_images['aim']
elif jid.find('@gadugadu.') != -1:
......
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