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


Commits:
39fed50c by wurstsalat at 2023-06-21T17:20:13+02:00
MessageRow: Show correct error text

- - - - -


1 changed file:

- gajim/gtk/conversation/rows/message.py


Changes:

=====================================
gajim/gtk/conversation/rows/message.py
=====================================
@@ -169,7 +169,11 @@ def update_with_content(self, db_row: 
DbConversationJoinedData) -> None:
             self.show_receipt(True)
 
         if db_row.errors is not None:
-            self.show_error(db_row.errors.condition)  # TODO
+            if db_row.errors.text is not None:
+                error_text = f'{db_row.errors.text} 
({db_row.errors.condition})'
+            else:
+                error_text = db_row.errors.condition
+            self.show_error(error_text)
 
         self.show_all()
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/39fed50ce214ffd3b65a413eb2d1239b9cd53d90

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