matrix-js-sdk
4b0db6c4 - Guard against duplicates in `Relations` model

Commit
4 years ago
Guard against duplicates in `Relations` model The `Relations` model was relying on object reference equality to prevent duplicates, which breaks down if we ever have two objects that represent the same event. This fixes things to additionally track event IDs we've seen before and discard any attempts to add them twice. Fixes https://github.com/vector-im/element-web/issues/11161
Author
Parents
Loading