Commit 4bbc6b19 authored by Philipp Hörist's avatar Philipp Hörist

Fail gracefully on invalid MAM GC Stanza

Fixes #8883
parent 624a2c5c
......@@ -1159,7 +1159,12 @@ class MamGcMessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
if self.msg_.getType() != 'groupchat':
return False
self.room_jid = self.stanza.getFrom().getStripped()
self.room_jid = self.stanza.getFrom().getStripped()
except AttributeError:
log.warning('Received GC MAM message '
'without from attribute\n%s', self.stanza)
return False
self.unique_id = self.get_stanza_id(self.result, query=True)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment