Skip to content

Commit

Permalink
account MAM is actually bare jid not domain
Browse files Browse the repository at this point in the history
  • Loading branch information
singpolyma committed Oct 22, 2024
1 parent dd449b1 commit e40052b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snikket/Message.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e40052b

Please sign in to comment.