parent
dfa4e3bf43
commit
ba3ac3a592
19
src/gajim.py
19
src/gajim.py
|
@ -398,15 +398,16 @@ class Interface:
|
||||||
# presence of another resource of out jid
|
# presence of another resource of out jid
|
||||||
if resource == gajim.connections[account].server_resource:
|
if resource == gajim.connections[account].server_resource:
|
||||||
resource = gajim.config.get_per('accounts', account, 'resource')
|
resource = gajim.config.get_per('accounts', account, 'resource')
|
||||||
contact1 = gajim.contacts.create_contact(jid = ji,
|
else:
|
||||||
name = gajim.nicks[account], groups = [],
|
contact1 = gajim.contacts.create_contact(jid = ji,
|
||||||
show = array[1], status = status_message, sub = 'both',
|
name = gajim.nicks[account], groups = [],
|
||||||
ask = 'none', priority = priority, keyID = keyID,
|
show = array[1], status = status_message, sub = 'both',
|
||||||
resource = resource)
|
ask = 'none', priority = priority, keyID = keyID,
|
||||||
old_show = 0
|
resource = resource)
|
||||||
gajim.contacts.add_contact(account, contact1)
|
old_show = 0
|
||||||
lcontact.append(contact1)
|
gajim.contacts.add_contact(account, contact1)
|
||||||
self.roster.add_self_contact(account)
|
lcontact.append(contact1)
|
||||||
|
self.roster.add_self_contact(account)
|
||||||
elif contact1.show in statuss:
|
elif contact1.show in statuss:
|
||||||
old_show = statuss.index(contact1.show)
|
old_show = statuss.index(contact1.show)
|
||||||
if (resources != [''] and (len(lcontact) != 1 or
|
if (resources != [''] and (len(lcontact) != 1 or
|
||||||
|
|
Loading…
Reference in New Issue