Commit 21f4378e authored by Yann Leboulanger's avatar Yann Leboulanger

don't show twice the same resource in account row tooltip.

parent 3f22a949
......@@ -1493,6 +1493,14 @@ class RosterWindow:
resources = roster.getResources(jid)
# ...get the contact info for our other online resources
for resource in resources:
# Check if we already have this resource
found = False
for contact_ in contacts:
if contact_.resource == resource:
found = True
if found:
show = roster.getShow(jid+'/'+resource)
if not show:
show = 'online'
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment