force one reaction

This commit is contained in:
Salvatore Giordano
2021-01-04 11:54:19 +01:00
parent e6c22cef82
commit d54315cf77
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -136,11 +136,11 @@ class _ReactionPickerState extends State<ReactionPicker>
/// Add a reaction to the message
void sendReaction(BuildContext context, String reactionType) {
StreamChannel.of(context)
.channel
.sendReaction(widget.message, reactionType, extraData: {
'enforce_unique': true,
});
StreamChannel.of(context).channel.sendReaction(
widget.message,
reactionType,
enforceUnique: true,
);
pop();
}