Put reaction and GIF helpers in charge of encoding

This commit is contained in:
Adam Novak
2026-04-06 02:09:40 -04:00
parent 75ec3b6116
commit c5ec60638c
4 changed files with 20 additions and 10 deletions
+5
View File
@@ -109,4 +109,9 @@ class ReactionHelper {
return ReactionInfo(targetHash: match.group(1)!, emoji: emoji);
}
/// Encode a reaction message that parseReaction() can parse.
static String encodeReaction(String hash, String emojiIndex) {
return 'r:$hash:$emojiIndex';
}
}