We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf581ea commit bb3ae24Copy full SHA for bb3ae24
packages/messenger-widget/src/components/Message/Message.tsx
@@ -39,6 +39,15 @@ export function Message(props: MessageProps) {
39
};
40
41
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
+
51
if (!selectedContact) {
52
throw Error('no contact selected');
53
}
0 commit comments