show status changement of contact without a resource only once. fixes #2542
This commit is contained in:
parent
a6201bff11
commit
d701c1ef3d
1 changed files with 6 additions and 2 deletions
|
@ -1153,7 +1153,10 @@ class RosterWindow:
|
||||||
self.remove_contact(contact, account)
|
self.remove_contact(contact, account)
|
||||||
self.add_contact_to_roster(contact.jid, account)
|
self.add_contact_to_roster(contact.jid, account)
|
||||||
# print status in chat window and update status/GPG image
|
# print status in chat window and update status/GPG image
|
||||||
for j in (contact.jid, contact.get_full_jid()):
|
jid_list = [contact.jid]
|
||||||
|
if contact.get_full_jid() != contact.jid:
|
||||||
|
jid_list.append(contact.get_full_jid())
|
||||||
|
for j in jid_list:
|
||||||
if gajim.interface.msg_win_mgr.has_window(j, account):
|
if gajim.interface.msg_win_mgr.has_window(j, account):
|
||||||
jid = contact.jid
|
jid = contact.jid
|
||||||
win = gajim.interface.msg_win_mgr.get_window(j, account)
|
win = gajim.interface.msg_win_mgr.get_window(j, account)
|
||||||
|
@ -1171,6 +1174,7 @@ class RosterWindow:
|
||||||
|
|
||||||
uf_show = helpers.get_uf_show(show)
|
uf_show = helpers.get_uf_show(show)
|
||||||
if status:
|
if status:
|
||||||
|
print '1'
|
||||||
ctrl.print_conversation(_('%s is now %s (%s)') % (name, uf_show,
|
ctrl.print_conversation(_('%s is now %s (%s)') % (name, uf_show,
|
||||||
status), 'status')
|
status), 'status')
|
||||||
else: # No status message
|
else: # No status message
|
||||||
|
|
Loading…
Add table
Reference in a new issue