From 14b62cef96b268d372a535971c2d2cedfeef1680 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Tue, 26 Sep 2023 13:59:51 +0200 Subject: [PATCH] fix(xep): Fix crash for messages with no id --- packages/moxxmpp/lib/src/xeps/xep_0045/xep_0045.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/moxxmpp/lib/src/xeps/xep_0045/xep_0045.dart b/packages/moxxmpp/lib/src/xeps/xep_0045/xep_0045.dart index 59e7d6a..958510c 100644 --- a/packages/moxxmpp/lib/src/xeps/xep_0045/xep_0045.dart +++ b/packages/moxxmpp/lib/src/xeps/xep_0045/xep_0045.dart @@ -282,6 +282,9 @@ class MUCManager extends XmppManagerBase { } // Check if this is the message reflection. + if (message.id == null) { + return state; + } final pending = (message.id!, state.extensions.get()?.originId); if (fromJid.resource == roomState.nick &&