git » sdk » commit e40052b

account MAM is actually bare jid not domain

author Stephen Paul Weber
2024-10-22 20:05:29 UTC
committer Stephen Paul Weber
2024-10-22 20:05:29 UTC
parent dd449b1ba03f94876a19f4b89f678340f983ce3a

account MAM is actually bare jid not domain

snikket/Message.hx +2 -2

diff --git a/snikket/Message.hx b/snikket/Message.hx
index 8bbe47e..689c3cc 100644
--- a/snikket/Message.hx
+++ b/snikket/Message.hx
@@ -93,9 +93,9 @@ class Message {
 				msg.serverIdBy = altServerId.attr.get("by");
 			}
 		}
-		if (msg.serverIdBy != null && msg.serverIdBy != localJid.domain) {
+		if (msg.serverIdBy != null && msg.serverIdBy != localJid.asBare().asString()) {
 			msg.replyId = msg.serverId;
-		} else if (msg.serverIdBy == localJid.domain) {
+		} else if (msg.serverIdBy == localJid.asBare().asString()) {
 			msg.replyId = msg.localId;
 		}
 		msg.direction = (msg.to == null || msg.to.asBare().equals(localJidBare)) ? MessageReceived : MessageSent;