Do not allow replies to self story

This commit is contained in:
Josh Perez 2022-09-21 15:19:16 -04:00 committed by GitHub
parent d221895b3a
commit b04fbb6d8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 70 additions and 17 deletions

View file

@ -1667,7 +1667,9 @@ function canReplyOrReact(
}
if (isStory(message)) {
return Boolean(message.canReplyToStory);
return (
Boolean(message.canReplyToStory) && conversation.id !== ourConversationId
);
}
// Fail safe.