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


Commits:
27cdd4a7 by lovetox at 2021-04-04T23:38:23+02:00
Improve read marker

- - - - -


2 changed files:

- gajim/chat_control.py
- gajim/gtk/conversation/view.py


Changes:

=====================================
gajim/chat_control.py
=====================================
@@ -559,6 +559,8 @@ def _on_message_received(self, event):
                          correct_id=event.correct_id,
                          additional_data=event.additional_data)
 
+        self.conversation_view.set_read_marker(event.properties.id)
+
     def _on_message_error(self, event):
         self.conversation_view.show_error(event.message_id, event.error)
 


=====================================
gajim/gtk/conversation/view.py
=====================================
@@ -311,6 +311,10 @@ def iter_rows(self):
             yield row
 
     def set_read_marker(self, id_):
+        if id_ is None:
+            self._read_marker_row.hide()
+            return
+
         row = self._get_row_by_message_id(id_)
         if row is None:
             return



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/27cdd4a72f7d18dbf71df34cf9f60da86bc7ae94

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/27cdd4a72f7d18dbf71df34cf9f60da86bc7ae94
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to