chore: send lemma emoji reaction on click (#3424)

This commit is contained in:
ggurdin 2025-07-11 13:07:10 -04:00 committed by GitHub
parent f6f4c60287
commit f396e5d32a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View file

@ -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(() {

View file

@ -203,6 +203,7 @@ class WordZoomWidget extends StatelessWidget {
),
LemmaReactionPicker(
cId: _selectedToken.vocabConstructID,
eventId: messageEvent.eventId,
controller: overlayController.widget.chatController,
),
if (controller.error != null)