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

don't add a self contact row when we get an offline presence from an unknown resource. Fixes #4582

parent 5e442437
No related branches found
No related tags found
No related merge requests found
...@@ -733,6 +733,9 @@ class Interface: ...@@ -733,6 +733,9 @@ class Interface:
# Create self contact and add to roster # Create self contact and add to roster
if resource == conn.server_resource: if resource == conn.server_resource:
return return
# Ignore offline presence of unknown self resource
if new_show < 2:
return
contact1 = gajim.contacts.create_contact(jid=ji, contact1 = gajim.contacts.create_contact(jid=ji,
name=gajim.nicks[account], groups=['self_contact'], name=gajim.nicks[account], groups=['self_contact'],
show=array[1], status=status_message, sub='both', ask='none', show=array[1], status=status_message, sub='both', ask='none',
......
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