it's possible that we don't have the jid of a contact in gc
This commit is contained in:
parent
1c70652031
commit
a3fb1bac82
|
@ -175,6 +175,8 @@ class Roster_window:
|
||||||
|
|
||||||
def get_appropriate_state_images(self, jid):
|
def get_appropriate_state_images(self, jid):
|
||||||
'''check jid and return the appropriate state images dict'''
|
'''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:
|
if jid.find('@aim.') != -1:
|
||||||
state_images = self.transports_state_images['aim']
|
state_images = self.transports_state_images['aim']
|
||||||
elif jid.find('@gadugadu.') != -1:
|
elif jid.find('@gadugadu.') != -1:
|
||||||
|
|
Loading…
Reference in New Issue