comparison 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
comparison
equal deleted inserted replaced
2753:3dd265d281e1 2754:3bea6b5ae972
94 94
95 user_msg = D_( 95 user_msg = D_(
96 u"User {sender} sent you an encrypted message (encrypted with {algorithm}), " 96 u"User {sender} sent you an encrypted message (encrypted with {algorithm}), "
97 u"and we can't decrypt it.").format(sender=sender_s, algorithm=algorithm) 97 u"and we can't decrypt it.").format(sender=sender_s, algorithm=algorithm)
98 98
99 extra = {C.MESS_EXTRA_INFO: u"UNKNOWN_ENCRYPTION"} 99 extra = {C.MESS_EXTRA_INFO: C.EXTRA_INFO_DECR_ERR}
100 client.feedback(to_jid, user_msg, extra) 100 client.feedback(to_jid, user_msg, extra)
101 return False 101 return False