mirror of https://github.com/vector-im/riot-web
Fix reacting to messages with reactions from other users
Signed-off-by: Tulir Asokan <tulir@maunium.net>pull/21833/head
parent
6ce2e3d796
commit
30ffd65b6c
|
@ -75,7 +75,7 @@ class ReactionPicker extends React.Component {
|
|||
return {};
|
||||
}
|
||||
const userId = MatrixClientPeg.get().getUserId();
|
||||
const myAnnotations = this.props.reactions.getAnnotationsBySender()[userId];
|
||||
const myAnnotations = this.props.reactions.getAnnotationsBySender()[userId] || [];
|
||||
return Object.fromEntries([...myAnnotations]
|
||||
.filter(event => !event.isRedacted())
|
||||
.map(event => [event.getRelation().key, event.getId()]));
|
||||
|
|
Loading…
Reference in New Issue