Fix reacting to messages with reactions from other users

Signed-off-by: Tulir Asokan <tulir@maunium.net>
pull/21833/head
Tulir Asokan 2019-10-16 21:35:08 +03:00
parent 6ce2e3d796
commit 30ffd65b6c
1 changed files with 1 additions and 1 deletions

View File

@ -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()]));