fix: attach metadata for emoji constructs on specific message event (#5689)
This commit is contained in:
parent
f00115f712
commit
5cd6007346
2 changed files with 10 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue