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


Commits:
4634fd3c by wurstsalat at 2023-07-23T19:42:39+02:00
ConversationView: Fix requesting message rows for calls and file transfer rows

- - - - -


1 changed file:

- gajim/gtk/conversation/view.py


Changes:

=====================================
gajim/gtk/conversation/view.py
=====================================
@@ -371,17 +371,19 @@ def _get_row_at_index(self, index: int) -> BaseRow:
         assert row is not None
         return cast(BaseRow, row)
 
-    def get_first_message_row(self) -> MessageRow | None:
+    def get_first_message_row(self
+    ) -> MessageRow | CallRow | FileTransferJingleRow | None:
         for row in self._list_box.get_children():
-            if isinstance(row, MessageRow):
+            if isinstance(row, MessageRow | CallRow | FileTransferJingleRow):
                 return row
         return None
 
-    def get_last_message_row(self) -> MessageRow | None:
+    def get_last_message_row(self
+    ) -> MessageRow | CallRow | FileTransferJingleRow | None:
         children = self._list_box.get_children()
         children.reverse()
         for row in children:
-            if isinstance(row, MessageRow):
+            if isinstance(row, MessageRow | CallRow | FileTransferJingleRow):
                 return row
         return None
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/4634fd3cdbf3e4e46db304c2eafe031acaf5b7a4

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