| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-09-22 16:40:01 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-09-22 16:40:01 UTC |
| parent | fc5f8cdb9e9150a87c0fbab851439af000e09592 |
| borogove/Message.hx | +4 | -3 |
diff --git a/borogove/Message.hx b/borogove/Message.hx index acaf824..b3c7408 100644 --- a/borogove/Message.hx +++ b/borogove/Message.hx @@ -242,9 +242,6 @@ class Message { msg.type = MessageCall; msg.payloads.push(jmi); if (msg.text == null) msg.text = "call " + jmi.name; - if (jmi.name != "propose") { - msg.versions = [msg.build()]; - } // The session id is what really identifies us msg.localId = jmi.attr.get("id"); } @@ -253,6 +250,10 @@ class Message { final timestamp = msg.timestamp ?? Date.format(std.Date.now()); msg.timestamp = timestamp; + if (jmi != null && jmi.name != "accept" && jmi.name != "propose") { + msg.versions = [msg.build()]; + } + final reactionsEl = stanza.getChild("reactions", "urn:xmpp:reactions:0"); if (reactionsEl != null) { // A reaction update is never also a chat message