From 30ffd65b6c9e68d5934c2b72c80d8a8095ce2337 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 16 Oct 2019 21:35:08 +0300 Subject: [PATCH] Fix reacting to messages with reactions from other users Signed-off-by: Tulir Asokan --- src/components/views/emojipicker/ReactionPicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/emojipicker/ReactionPicker.js b/src/components/views/emojipicker/ReactionPicker.js index d539fa30e6..4dd7ea0da7 100644 --- a/src/components/views/emojipicker/ReactionPicker.js +++ b/src/components/views/emojipicker/ReactionPicker.js @@ -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()]));