fix: Localize reactions

In notifications in FluffyChat we
have "Unknown event m.reaction"
for reactions. But it should just be
enough to display the body so it
should look like:
"username: :thumbs_up_emoji:"
This commit is contained in:
Krille Fear 2021-12-23 11:43:00 +01:00
parent 5a72287d41
commit 326f1f3223
1 changed files with 2 additions and 1 deletions

View File

@ -216,6 +216,7 @@ abstract class EventLocalizations {
_localizedBodyNormalMessage(event, i18n, body),
EventTypes.Message: (event, i18n, body) =>
_localizedBodyNormalMessage(event, i18n, body),
EventTypes.Reaction: null,
EventTypes.Reaction: (event, i18n, body) =>
_localizedBodyNormalMessage(event, i18n, body),
};
}