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.
This commit is contained in:
Goffi 2022-06-17 14:15:23 +02:00
commit bb3e7ffa9b

View file

@ -1417,9 +1417,6 @@ class OMEMO:
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))