Philipp Hörist pushed to branch master at gajim / gajim
Commits:
a8ca9b60 by Philipp Hörist at 2025-04-15T18:30:44+02:00
fix: Search: Don’t show moderated messages
Fixes #12163
- - - - -
1 changed file:
- gajim/gtk/search_view.py
Changes:
=====================================
gajim/gtk/search_view.py
=====================================
@@ -226,10 +226,13 @@ def _set_placeholder_mode(self, placeholder_mode:
PlaceholderMode) -> None:
def _add_results(self) -> None:
assert self._results_iterator is not None
has_results = False
- for db_row in itertools.islice(self._results_iterator, 25):
- has_results = True
- result_row = ResultRow(db_row)
+ for message in itertools.islice(self._results_iterator, 25):
+ if message.moderation is not None:
+ continue
+
+ result_row = ResultRow(message)
self._ui.results_listbox.append(result_row)
+ has_results = True
if not has_results:
self._set_placeholder_mode(PlaceholderMode.NO_RESULTS)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/a8ca9b60b904c152c56366edbe0c26f2357255a3
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/a8ca9b60b904c152c56366edbe0c26f2357255a3
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]