Philipp Hörist pushed to branch master at gajim / gajim
Commits: 9aa42d78 by lovetox at 2022-07-10T22:21:46+02:00 perf: Roster: Don’t invalidate filter on contact update
It’s enough to just evaluate the visibility for the contact instead of the whole roster
- - - - -
1 changed file:
- gajim/gtk/roster.py
Changes:
===================================== gajim/gtk/roster.py ===================================== @@ -528,7 +528,6 @@ def _on_contact_update(self, _signal_name: str) -> None:
self._draw_contact(contact) - self._refilter()
@event_filter(['account']) def _on_roster_received(self, _event: RosterReceived) -> None: @@ -693,6 +692,7 @@ def _draw_contact_row(self, surface = contact.get_avatar( AvatarSize.ROSTER, self.get_scale_factor()) self._store[iter_][Column.AVATAR] = surface + self._store[iter_][Column.VISIBLE] = self._get_contact_visible(contact)
def _get_total_user_count(self) -> int: count = 0
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/9aa42d7826e1ac336eee5bef7d67c2c2b...