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 /// Add a reaction to the message
void sendReaction(BuildContext context, String reactionType) { void sendReaction(BuildContext context, String reactionType) {
StreamChannel.of(context) StreamChannel.of(context).channel.sendReaction(
.channel widget.message,
.sendReaction(widget.message, reactionType, extraData: { reactionType,
'enforce_unique': true, enforceUnique: true,
}); );
pop(); pop();
} }
+1 -1
View File
@@ -28,7 +28,7 @@ dependencies:
file_picker: ^2.0.12 file_picker: ^2.0.12
image_picker: ^0.6.7+2 image_picker: ^0.6.7+2
flutter_keyboard_visibility: ^3.3.0 flutter_keyboard_visibility: ^3.3.0
stream_chat: ^0.2.20 stream_chat: ^0.2.21+2
mime: ^0.9.6+3 mime: ^0.9.6+3
video_compress: ^2.1.1 video_compress: ^2.1.1
visibility_detector: ^0.1.5 visibility_detector: ^0.1.5