forked from Nexus/nexus
Update reactions as they are modified
This commit is contained in:
parent
7b2a6b84ad
commit
e9b78a14d5
2 changed files with 60 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue