Philipp Hörist pushed to branch master at gajim / gajim
Commits:
7c5b42e1 by Philipp Hörist at 2024-05-01T20:24:00+02:00
cfix: MAM: Determine stanza-id correctly
- - - - -
1 changed file:
- gajim/common/modules/mam.py
Changes:
=====================================
gajim/common/modules/mam.py
=====================================
@@ -204,15 +204,15 @@ def _mam_message_received(self,
self._log.warning(stanza)
raise nbxmpp.NodeProcessed
- stanza_id = self._get_stanza_id(properties, properties.mam.archive)
+ stanza_id = properties.mam.id
if stanza_id is None:
self._log.warning('Unable to determine stanza id')
self._log.warning(stanza)
raise nbxmpp.NodeProcessed
if app.storage.archive.check_if_stanza_id_exists(
- self._account, properties.remote_jid, stanza_id.id):
- self._log.info('Received duplicated message from MAM: %s',
stanza_id.id)
+ self._account, properties.remote_jid, stanza_id):
+ self._log.info('Received duplicated message from MAM: %s',
stanza_id)
raise nbxmpp.NodeProcessed
def _is_valid_request(self, properties: MessageProperties) -> bool:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/7c5b42e1d362f8ad2f39ea8c610e8c03df3a4591
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/7c5b42e1d362f8ad2f39ea8c610e8c03df3a4591
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]