Skip to content
Snippets Groups Projects
Commit 9aa42d78 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

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
parent 0bb75cdf
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment