diff sat/plugins/plugin_xep_0384.py @ 3797:cc653b2685f0

core (memory/sqla), plugin XEP-0359: always add `origin-id`, and store: `origin-id` is now always added to messages, and it is stored to database in the new column instead of `extra` when present.
author Goffi <goffi@goffi.org>
date Fri, 17 Jun 2022 14:15:23 +0200
parents 11f7ca8afd15
children 8289ac1b34f4
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0384.py	Fri Jun 17 14:15:23 2022 +0200
+++ b/sat/plugins/plugin_xep_0384.py	Fri Jun 17 14:15:23 2022 +0200
@@ -1417,9 +1417,6 @@
                     MUC_CACHE_TTL, self._expireMUCCache, client)
             else:
                 timer.reset(MUC_CACHE_TTL)
-            # we use origin-id when possible, to identifiy the message in a stable way
-            if self._sid is not None:
-                self._sid.addOriginId(message_elt, mess_data['uid'])
 
         encryption_data = yield defer.ensureDeferred(self.encryptMessage(
             client, to_jids, body, feedback_jid=feedback_jid))