Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
297997c6 by cal0pteryx at 2026-03-21T13:42:55+01:00
fix: Chat list filter: Fix group filter for PMs

Fixes #12674

- - - - -


1 changed file:

- gajim/gtk/chat_list.py


Changes:

=====================================
gajim/gtk/chat_list.py
=====================================
@@ -454,6 +454,7 @@ def _filter_func(self, row: ChatListRow) -> bool:
             return False
 
         is_groupchat = row.type == "groupchat"
+        is_pm = row.type == "pm"
         if self._current_filter.type == ChatTypeFilter.CHAT and is_groupchat:
             return False
 
@@ -462,7 +463,7 @@ def _filter_func(self, row: ChatListRow) -> bool:
 
         group = self._current_filter.group
         if group is not None:
-            if is_groupchat:
+            if is_groupchat or is_pm:
                 return False
 
             assert isinstance(row.contact, BareContact)
@@ -471,6 +472,7 @@ def _filter_func(self, row: ChatListRow) -> bool:
 
         if not self._current_filter_text:
             return True
+
         text = self._current_filter_text.lower()
         return text in row.contact_name.lower()
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/297997c65f245f651625b6a76dda81869f2b2d8f

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/297997c65f245f651625b6a76dda81869f2b2d8f
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]

Reply via email to