Skip to content

Commit

Permalink
fixed the error when putting the reaction directly on the link
Browse files Browse the repository at this point in the history
  • Loading branch information
perunt committed Mar 8, 2023
1 parent 29d271c commit cb4fc3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pages/home/report/ContextMenu/ContextMenuActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ export default [
);
}

const hasMessage = _.has(reportAction, 'message');
if (!hasMessage) {
// It happens when we long-press on a link. We can only provide a reaction for messages
return null;
}
return (
<QuickEmojiReactions
key="BaseQuickEmojiReactions"
Expand Down

0 comments on commit cb4fc3b

Please sign in to comment.