Philipp Hörist pushed to branch retraction at gajim / gajim
Commits:
4a69e6ca by Philipp Hörist at 2025-04-19T23:41:39+02:00
imprv: Don’t show retractions in search
- - - - -
2 changed files:
- gajim/common/storage/archive/storage.py
- gajim/gtk/search_view.py
Changes:
=====================================
gajim/common/storage/archive/storage.py
=====================================
@@ -1153,6 +1153,8 @@ def get_messages_for_export(
Message.fk_account_pk == fk_account_pk,
Message.fk_remote_pk == fk_remote_pk,
Message.correction_id.is_(None),
+ ~Message.moderation.has(),
+ ~Message.retraction.has(),
)
.order_by(Message.timestamp, Message.pk)
.execution_options(yield_per=25)
=====================================
gajim/gtk/search_view.py
=====================================
@@ -247,6 +247,9 @@ def _add_results(self) -> None:
if original_message is None:
continue
+ if original_message.moderation or original_message.retraction:
+ continue
+
last_correction = original_message.get_last_correction()
if message.pk != last_correction.pk:
continue
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/4a69e6ca837a4d281d1fb258ac810fbe4b922505
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/4a69e6ca837a4d281d1fb258ac810fbe4b922505
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]