De-duplicate reactions by sender to account for faulty/malicious servers (#11340)

* De-duplicate reactions by sender to account for faulty/malicious servers

* Fix copyrights
This commit is contained in:
Michael Telatynski 2023-07-31 15:42:23 +01:00 committed by GitHub
parent 1f3d99c25c
commit 053b564d75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 6 deletions

View file

@ -27,8 +27,8 @@ interface IProps {
mxEvent: MatrixEvent;
// The reaction content / key / emoji
content: string;
// A Set of Matrix reaction events for this key
reactionEvents: Set<MatrixEvent>;
// A list of Matrix reaction events for this key
reactionEvents: MatrixEvent[];
visible: boolean;
}