Put reaction and GIF helpers in charge of encoding
This commit is contained in:
1 parent
75ec3b6116
commit
c5ec60638c
4 files changed
+20
-10
No files matched your search
@@ -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';
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user