| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2024-11-18 22:04:35 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2024-11-18 22:04:35 UTC |
| parent | 71f1dea234bdb3f368b8c5089061dc89c4a32672 |
| snikket/Client.hx | +6 | -0 |
diff --git a/snikket/Client.hx b/snikket/Client.hx index 28870b3..840912b 100644 --- a/snikket/Client.hx +++ b/snikket/Client.hx @@ -135,6 +135,12 @@ class Client extends EventEmitter { stream.on("message", function(event) { final stanza:Stanza = event.stanza; + + if (stanza.getChild("result", "urn:xmpp:mam:2") != null) { + // We don't want to process MAM messages here + return EventUnhandled; + } + final from = stanza.attr.get("from") == null ? null : JID.parse(stanza.attr.get("from")); if (stanza.attr.get("type") == "error" && from != null) {