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


Commits:
309d641d by Philipp Hörist at 2024-03-04T11:42:28+01:00
fix: Fix correcting message

- - - - -


1 changed file:

- gajim/gtk/message_input.py


Changes:

=====================================
gajim/gtk/message_input.py
=====================================
@@ -137,12 +137,12 @@ def toggle_message_correction(self) -> None:
 
         message_row = app.storage.archive.get_last_correctable_message(
             self._contact.account, self._contact.jid, last_message_id)
-        if message_row is None or message_row.message is None:
+        if message_row is None or message_row.text is None:
             return
 
-        text = message_row.message
+        text = message_row.text
         if message_row.corrections:
-            text = message_row.get_last_correction().message
+            text = message_row.get_last_correction().text
         self._set_correcting(True)
         self.get_style_context().add_class('gajim-msg-correcting')
         self.insert_text(text)
@@ -161,7 +161,7 @@ def try_message_correction(self, message: str) -> str | 
None:
             log.info('Trying to correct message older than threshold')
             return None
 
-        if message_row.message == message:
+        if message_row.text == message:
             log.info('Trying to correct message with original text')
             return None
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/309d641d54f2c2c59eac39401453a5d823c3b556

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