Deal with stanza-id not added by a mam archive

Fixes #9550
This commit is contained in:
Philipp Hörist 2019-01-19 21:35:58 +01:00
parent 3e362874be
commit 31d9b39744
1 changed files with 2 additions and 0 deletions

View File

@ -331,6 +331,8 @@ class Message:
if archive.bareMatch(properties.stanza_id.by): if archive.bareMatch(properties.stanza_id.by):
return properties.stanza_id.id, None return properties.stanza_id.id, None
# stanza-id not added by the archive, ignore it.
return None, None
class MessageReceivedEvent(NetworkIncomingEvent): class MessageReceivedEvent(NetworkIncomingEvent):