| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2024-10-22 20:05:29 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2024-10-22 20:05:29 UTC |
| parent | dd449b1ba03f94876a19f4b89f678340f983ce3a |
| 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;