[dkirov] fix to show correct state icon
This commit is contained in:
parent
06e87eebdf
commit
537d1e6026
1 changed files with 5 additions and 1 deletions
|
@ -246,6 +246,10 @@ class RosterWindow:
|
||||||
else:
|
else:
|
||||||
if user.ask == 'subscribe':
|
if user.ask == 'subscribe':
|
||||||
img = state_images['requested']
|
img = state_images['requested']
|
||||||
|
else:
|
||||||
|
transport = self.get_transport_name_by_jid(jid)
|
||||||
|
if transport and state_images.has_key(user.show):
|
||||||
|
img = state_images[user.show]
|
||||||
else:
|
else:
|
||||||
img = state_images[_('not in the roster')]
|
img = state_images[_('not in the roster')]
|
||||||
for iter in iters:
|
for iter in iters:
|
||||||
|
|
Loading…
Add table
Reference in a new issue