Philipp Hörist pushed to branch master at gajim / gajim
Commits:
5794d54d by Philipp Hörist at 2018-03-26T23:47:43+02:00
Dont print status if it has not changed
Only print the status, if status has changed or the status message
Clients announce there idle-time with presences but adding a idle-time
does not necessarily mean they went from available -> away
Fixes #9001
- - - - -
2 changed files:
- gajim/common/connection_handlers.py
- gajim/roster_window.py
Changes:
=====================================
gajim/common/connection_handlers.py
=====================================
--- a/gajim/common/connection_handlers.py
+++ b/gajim/common/connection_handlers.py
@@ -851,10 +851,9 @@ class ConnectionHandlersBase:
obj.contact.contact_name = obj.contact_nickname
obj.need_redraw = True
- if obj.old_show == obj.new_show and obj.contact.status == \
- obj.status and obj.contact.priority == obj.prio and \
- obj.contact.idle_time == obj.idle_time: # no change
- return True
+ elif obj.old_show != obj.new_show or obj.contact.status != \
+ obj.status:
+ obj.need_redraw = True
else:
obj.contact = app.contacts.get_first_contact_from_jid(account,
jid)
=====================================
gajim/roster_window.py
=====================================
--- a/gajim/roster_window.py
+++ b/gajim/roster_window.py
@@ -2574,7 +2574,7 @@ class RosterWindow:
self.draw_contact(jid, account)
self.draw_group(_('Transports'), account)
- if obj.contact:
+ if obj.contact and obj.need_redraw:
self.chg_contact_status(obj.contact, obj.show, obj.status, account)
if obj.popup:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/5794d54d1c4a554125a880b5dfc296de5fca08ab
---
View it on GitLab:
https://dev.gajim.org/gajim/gajim/commit/5794d54d1c4a554125a880b5dfc296de5fca08ab
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits