don't accept server resource as another
resource of our contact
This commit is contained in:
parent
aef7ebfa18
commit
81be580422
|
@ -396,6 +396,8 @@ class Interface:
|
||||||
contact1 = gajim.contacts.get_first_contact_from_jid(account, ji)
|
contact1 = gajim.contacts.get_first_contact_from_jid(account, ji)
|
||||||
if not contact1:
|
if not contact1:
|
||||||
# presence of another resource of out jid
|
# presence of another resource of out jid
|
||||||
|
if resource == gajim.connections[account].server_resource:
|
||||||
|
resource = gajim.config.get_per('accounts', account, 'resource')
|
||||||
contact1 = gajim.contacts.create_contact(jid = ji,
|
contact1 = gajim.contacts.create_contact(jid = ji,
|
||||||
name = gajim.nicks[account], groups = [],
|
name = gajim.nicks[account], groups = [],
|
||||||
show = array[1], status = status_message, sub = 'both',
|
show = array[1], status = status_message, sub = 'both',
|
||||||
|
|
Loading…
Reference in New Issue