Skip to content

Commit bb3ae24

Browse files
committed
Remove reaction bug fix
1 parent bf581ea commit bb3ae24

File tree

1 file changed

+9
-0
lines changed
  • packages/messenger-widget/src/components/Message

1 file changed

+9
-0
lines changed

packages/messenger-widget/src/components/Message/Message.tsx

+9
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ export function Message(props: MessageProps) {
3939
};
4040

4141
const deleteEmoji = async (deleteEmojiData: Envelop) => {
42+
/**
43+
* User can't remove reactions on his own messages.
44+
* As the other account can only react to my messages.
45+
* And only that other account can remove those reactions.
46+
**/
47+
if (props.ownMessage) {
48+
return;
49+
}
50+
4251
if (!selectedContact) {
4352
throw Error('no contact selected');
4453
}

0 commit comments

Comments
 (0)