chore: send lemma emoji reaction on click (#3424)
This commit is contained in:
parent
f6f4c60287
commit
f396e5d32a
2 changed files with 7 additions and 2 deletions
|
|
@ -7,12 +7,14 @@ import 'package:fluffychat/pangea/toolbar/reading_assistance_input_row/lemma_emo
|
|||
|
||||
class LemmaReactionPicker extends StatefulWidget {
|
||||
final ConstructIdentifier cId;
|
||||
final String eventId;
|
||||
final ChatController controller;
|
||||
final double? iconSize;
|
||||
|
||||
const LemmaReactionPicker({
|
||||
super.key,
|
||||
required this.cId,
|
||||
required this.eventId,
|
||||
required this.controller,
|
||||
this.iconSize,
|
||||
});
|
||||
|
|
@ -39,8 +41,10 @@ class LemmaReactionPickerState extends State<LemmaReactionPicker> {
|
|||
}
|
||||
}
|
||||
|
||||
void setEmoji(String emoji) {}
|
||||
// widget.controller.sendEmojiAction(emoji);
|
||||
void setEmoji(String emoji) => widget.controller.room.sendReaction(
|
||||
widget.eventId,
|
||||
emoji,
|
||||
);
|
||||
|
||||
Future<void> _refresh() async {
|
||||
setState(() {
|
||||
|
|
|
|||
|
|
@ -203,6 +203,7 @@ class WordZoomWidget extends StatelessWidget {
|
|||
),
|
||||
LemmaReactionPicker(
|
||||
cId: _selectedToken.vocabConstructID,
|
||||
eventId: messageEvent.eventId,
|
||||
controller: overlayController.widget.chatController,
|
||||
),
|
||||
if (controller.error != null)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue