Philipp Hörist pushed to branch retraction at gajim / gajim


Commits:
8d9ee507 by Philipp Hörist at 2025-04-19T23:47:06+02:00
imprv: Add more comments

- - - - -


1 changed file:

- gajim/gtk/search_view.py


Changes:

=====================================
gajim/gtk/search_view.py
=====================================
@@ -248,10 +248,15 @@ def _add_results(self) -> None:
                     continue
 
                 if original_message.moderation or original_message.retraction:
+                    # Retractions always reference only the original message
+                    # If the original was retracted, ignore search hits in the
+                    # correction
                     continue
 
                 last_correction = original_message.get_last_correction()
                 if message.pk != last_correction.pk:
+                    # This was a search hit on a correction which is not
+                    # the last correction available, so ignore it
                     continue
 
             result_row = ResultRow(message)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/8d9ee5078616d6941fb7802bdf2d9d0a3a931dc9

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