only add non-free text reactions to recent
This commit is contained in:
parent
301bcd94f2
commit
93b832839b
4 changed files with 25 additions and 20 deletions
|
|
@ -21,12 +21,15 @@ class const EmojiPicker({
|
|||
.watch(upstream.EmojiController.provider)
|
||||
.betterWhen(
|
||||
data: (categories) => upstream.EmojiPicker(
|
||||
onSelection: (emoji) async {
|
||||
onSelection: (emoji, isFreeText) async {
|
||||
await onSelection(emoji);
|
||||
await ref
|
||||
.watch(RecentEmojiController.provider.notifier)
|
||||
.add(emoji)
|
||||
.onError(showError);
|
||||
|
||||
if (!isFreeText) {
|
||||
await ref
|
||||
.watch(RecentEmojiController.provider.notifier)
|
||||
.add(emoji)
|
||||
.onError(showError);
|
||||
}
|
||||
},
|
||||
allowFreeText: allowFreeText,
|
||||
prependCategories: .new([
|
||||
|
|
|
|||
Loading…
Reference in a new issue