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


Commits:
3d1348ca by Philipp Hörist at 2026-06-30T22:22:35+02:00
fix: Chat: Display encryption name correctly if message cannot be decrypted

- - - - -


1 changed file:

- gajim/common/modules/message_util.py


Changes:

=====================================
gajim/common/modules/message_util.py
=====================================
@@ -40,7 +40,10 @@ def get_eme_message(eme_data: nbxmpp.structs.EMEData) -> str:
     try:
         return EME_MESSAGES[eme_data.namespace]
     except KeyError:
-        return EME_MESSAGES["fallback"] % eme_data.name
+        encryption_name = EME_PROTOCOLS.get(eme_data.namespace)
+        if not encryption_name:
+            encryption_name = eme_data.name or eme_data.namespace
+        return EME_MESSAGES["fallback"] % encryption_name
 
 
 def get_eme_protocol(eme_data: nbxmpp.structs.EMEData) -> str:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/3d1348cae5570be6b77dccc37dcb96856586ad38

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