git » sdk » commit 1876ce2

Don't trim variant selector until reaction xep

author Stephen Paul Weber
2026-04-19 19:27:58 UTC
committer Stephen Paul Weber
2026-04-19 19:27:58 UTC
parent 53e7aae9ae2f94c5fb08358382aee97c2fb816ab

Don't trim variant selector until reaction xep

borogove/Chat.hx +1 -1
borogove/ChatMessage.hx +1 -1

diff --git a/borogove/Chat.hx b/borogove/Chat.hx
index 32536dd..3c14276 100644
--- a/borogove/Chat.hx
+++ b/borogove/Chat.hx
@@ -251,7 +251,7 @@ abstract class Chat {
 		toSend.localId = ID.unique();
 		reaction.render(
 			(text) -> {
-				toSend.setBody(Html.text(text.replace("\u{fe0f}", "")));
+				toSend.setBody(Html.text(text));
 				return "";
 			},
 			(text, uri) -> {
diff --git a/borogove/ChatMessage.hx b/borogove/ChatMessage.hx
index d1d3483..5b6454e 100644
--- a/borogove/ChatMessage.hx
+++ b/borogove/ChatMessage.hx
@@ -531,7 +531,7 @@ class ChatMessage {
 					}
 				}
 				if (quoteText != "") quoteText += "\n";
-				final reaction = EmojiUtil.isEmoji(StringTools.trim(body)) ? StringTools.trim(body) : null;
+				final reaction = EmojiUtil.isEmoji(StringTools.trim(body)) ? StringTools.trim(body.replace("\u{fe0f}", "")) : null;
 				body = quoteText + body;
 				if (replyId != null) {
 					final codepoints = StringUtil.codepointArray(quoteText);