1
0
Fork 0
forked from Nexus/nexus

Update reactions as they are modified

This commit is contained in:
Henry Hiles 2026-04-10 16:31:55 -04:00
commit e9b78a14d5
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
2 changed files with 60 additions and 6 deletions

View file

@ -79,7 +79,8 @@ class MessageController extends AsyncNotifier<Message?> {
);
final reactions = reactionEvents
?.fold<IMap<String, IList<String>>>(IMap(), (acc, event) {
?.where((event) => event.redactedBy == null)
.fold<IMap<String, IList<String>>>(IMap(), (acc, event) {
final key = event.content["m.relates_to"]?["key"];
if (key == null) return acc;