This commit is contained in:
Salvatore Giordano
2020-04-09 18:01:44 +02:00
parent d6033ec2b6
commit 88ec33d798
16 changed files with 31 additions and 9 deletions
+2
View File
@@ -67,11 +67,13 @@ class ReactionPicker extends StatelessWidget {
);
}
/// Add a reaction to the message
void sendReaction(BuildContext context, String reactionType) {
channel.sendReaction(message.id, reactionType);
Navigator.of(context).pop();
}
/// Remove a reaction from the message
void removeReaction(BuildContext context, String reactionType) {
channel.deleteReaction(message.id, reactionType);
Navigator.of(context).pop();