Philipp Hörist pushed to branch timezone at gajim / gajim
Commits:
8daacd78 by Philipp Hörist at 2026-03-22T19:35:03+01:00
cfix: Fix notification count
- - - - -
1 changed file:
- gajim/gtk/activity_list.py
Changes:
=====================================
gajim/gtk/activity_list.py
=====================================
@@ -196,13 +196,12 @@ def _remove_same_items(self, new_item: ActivityListItemT)
-> None:
old_item = self._model.get_item(i)
assert old_item is not None
- if not old_item.read:
- self._decrease_unread_count()
-
if (
isinstance(old_item, type(new_item))
and old_item.account == new_item.account
):
+ if not old_item.read:
+ self._decrease_unread_count()
self._model.remove(i)
def _remove_by_type(self, item_type: type[ActivityListItemT]) -> None:
@@ -210,10 +209,9 @@ def _remove_by_type(self, item_type:
type[ActivityListItemT]) -> None:
item = self._model.get_item(i)
assert item is not None
- if not item.read:
- self._decrease_unread_count()
-
if isinstance(item, item_type):
+ if not item.read:
+ self._decrease_unread_count()
self._model.remove(i)
def _remove(self, item: ActivityListItemT) -> None:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/8daacd78432d2f3db01553cdc9bc46e82f586a7b
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/8daacd78432d2f3db01553cdc9bc46e82f586a7b
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]