Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
e73d1334 by wurstsalat at 2023-05-22T22:09:58+02:00
fix: Fix encryption deadlock with changed MUC configurations
This disables encryption if MUC configuration changed and encryption is not
applicable anymore
Fixes #11421
- - - - -
1 changed file:
- gajim/gtk/message_actions_box.py
Changes:
=====================================
gajim/gtk/message_actions_box.py
=====================================
@@ -318,6 +318,12 @@ def _update_encryption_button(self) -> None:
'Encryption is not available.')
icon_name = 'channel-insecure-symbolic'
+ # Disable encryption if chat was encrypted before, but due to
+ # changed circumstances, encryption is not applicable anymore
+ # (i.e. group chat configuration changed).
+ contact.settings.set('encryption', '')
+ action.set_state(GLib.Variant('s', ''))
+
self._ui.encryption_menu_button.set_sensitive(sensitive)
self._ui.encryption_menu_button.set_tooltip_text(tooltip)
self._ui.encryption_image.set_from_icon_name(
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/e73d13344232457f0fad3cc09a46940be62f1e2d
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/e73d13344232457f0fad3cc09a46940be62f1e2d
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