don't show twice the same resource in account row tooltip.
This commit is contained in:
parent
3f22a94978
commit
21f4378e96
|
@ -1493,6 +1493,14 @@ class RosterWindow:
|
||||||
resources = roster.getResources(jid)
|
resources = roster.getResources(jid)
|
||||||
# ...get the contact info for our other online resources
|
# ...get the contact info for our other online resources
|
||||||
for resource in resources:
|
for resource in resources:
|
||||||
|
# Check if we already have this resource
|
||||||
|
found = False
|
||||||
|
for contact_ in contacts:
|
||||||
|
if contact_.resource == resource:
|
||||||
|
found = True
|
||||||
|
break
|
||||||
|
if found:
|
||||||
|
continue
|
||||||
show = roster.getShow(jid+'/'+resource)
|
show = roster.getShow(jid+'/'+resource)
|
||||||
if not show:
|
if not show:
|
||||||
show = 'online'
|
show = 'online'
|
||||||
|
|
Loading…
Reference in New Issue