From d54315cf775df8a79121bd638e976e00254b254b Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Mon, 4 Jan 2021 11:54:19 +0100 Subject: [PATCH] force one reaction --- lib/src/reaction_picker.dart | 10 +++++----- pubspec.yaml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/src/reaction_picker.dart b/lib/src/reaction_picker.dart index 5892a66d..9344b386 100644 --- a/lib/src/reaction_picker.dart +++ b/lib/src/reaction_picker.dart @@ -136,11 +136,11 @@ class _ReactionPickerState extends State /// 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(); } diff --git a/pubspec.yaml b/pubspec.yaml index 12374291..db646293 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -28,7 +28,7 @@ dependencies: file_picker: ^2.0.12 image_picker: ^0.6.7+2 flutter_keyboard_visibility: ^3.3.0 - stream_chat: ^0.2.20 + stream_chat: ^0.2.21+2 mime: ^0.9.6+3 video_compress: ^2.1.1 visibility_detector: ^0.1.5