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

do not remove iter if there are 2 or more resources

parent 7934a710
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,7 @@ class Interface:
user1.priority, user1.keyID)
luser.append(user1)
user1.resource = resource
if user1.jid.find('@') > 0: # It's not an agent
if user1.jid.find('@') > 0 and len(luser) == 1: # It's not an agent
if old_show == 0 and new_show > 1:
if not user1.jid in self.roster.newly_added[account]:
self.roster.newly_added[account].append(user1.jid)
......
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