Philipp Hörist pushed to branch unify-control at gajim / gajim
Commits:
d4d4526e by lovetox at 2022-08-10T20:23:22+02:00
fix: More backwards compatibility
- - - - -
2 changed files:
- gajim/gtk/chat_stack.py
- gajim/gtk/control.py
Changes:
=====================================
gajim/gtk/chat_stack.py
=====================================
@@ -578,11 +578,11 @@ def _on_send_message(self) -> None:
encryption = contact.settings.get('encryption')
if encryption:
- self.sendmessage = True
+ self._chat_control.sendmessage = True
app.plugin_manager.extension_point(
'send_message' + encryption,
self._chat_control)
- if not self.sendmessage:
+ if not self._chat_control.sendmessage:
return
client = app.get_client(contact.account)
=====================================
gajim/gtk/control.py
=====================================
@@ -99,6 +99,9 @@ def __init__(self) -> None:
# Keeps track of whether the ConversationView is populated
self._chat_loaded: bool = False
+ # Used with encryption plugins
+ self.sendmessage = False
+
# XEP-0333 Chat Markers
self.last_msg_id: Optional[str] = None
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d4d4526ea2d5bccfb8ee1dd51a103031dcda984b
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d4d4526ea2d5bccfb8ee1dd51a103031dcda984b
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