diff sat/plugins/plugin_xep_0380.py @ 2754:3bea6b5ae972

plugin XEP-0380, XEP-0384: use C.EXTRA_INFO_DECR_ERR as info sub-type when a message can't be decrypted.
author Goffi <goffi@goffi.org>
date Fri, 04 Jan 2019 18:47:56 +0100
parents ae495f27b316
children 607cfc79e40f
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0380.py	Fri Jan 04 18:46:39 2019 +0100
+++ b/sat/plugins/plugin_xep_0380.py	Fri Jan 04 18:47:56 2019 +0100
@@ -96,6 +96,6 @@
             u"User {sender} sent you an encrypted message (encrypted with {algorithm}), "
             u"and we can't decrypt it.").format(sender=sender_s, algorithm=algorithm)
 
-        extra = {C.MESS_EXTRA_INFO: u"UNKNOWN_ENCRYPTION"}
+        extra = {C.MESS_EXTRA_INFO: C.EXTRA_INFO_DECR_ERR}
         client.feedback(to_jid, user_msg, extra)
         return False