Skip to content

Commit

Permalink
Stop eating first char of reply text
Browse files Browse the repository at this point in the history
  • Loading branch information
singpolyma committed Jul 3, 2024
1 parent b671bca commit de3ca04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snikket/ChatMessage.hx
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class ChatMessage {
.tag("body").up().up();
}
stanza.tag("fallback", { xmlns: "urn:xmpp:fallback:0", "for": "urn:xmpp:reply:0" })
.tag("body", { start: "0", end: Std.string(codepoints.length + 1) }).up().up();
.tag("body", { start: "0", end: Std.string(codepoints.length) }).up().up();
stanza.tag("reply", { xmlns: "urn:xmpp:reply:0", to: replyToM.from?.asString(), id: replyId }).up();
}
}
Expand Down

0 comments on commit de3ca04

Please sign in to comment.