fix: attach metadata for emoji constructs on specific message event (#5689)

This commit is contained in:
ggurdin 2026-02-13 10:18:29 -05:00 committed by GitHub
parent f00115f712
commit 5cd6007346
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View file

@ -15,6 +15,8 @@ mixin LemmaEmojiSetter {
String langCode,
String emoji,
String? targetId,
String? roomId,
String? eventId,
) async {
final userL2 =
MatrixState.pangeaController.userController.userL2?.langCodeShort;
@ -24,7 +26,12 @@ mixin LemmaEmojiSetter {
}
if (constructId.userSetEmoji == null) {
_getEmojiAnalytics(constructId, targetId: targetId);
_getEmojiAnalytics(
constructId,
targetId: targetId,
roomId: roomId,
eventId: eventId,
);
}
await MatrixState

View file

@ -93,6 +93,8 @@ class LemmaReactionPickerState extends State<LemmaReactionPicker> {
widget.langCode,
emoji,
targetId,
widget.event?.roomId,
widget.event?.eventId,
);
messenger = ScaffoldMessenger.of(context);
widget.showLemmaEmojiSnackbar(