diff --git a/lib/shared/message-utils.js b/lib/shared/message-utils.js --- a/lib/shared/message-utils.js +++ b/lib/shared/message-utils.js @@ -659,10 +659,11 @@ message: RawMessageInfo | MessageInfo, ): boolean %checks { return ( - message.type === messageTypes.REACTION || - message.type === messageTypes.EDIT_MESSAGE || - message.type === messageTypes.SIDEBAR_SOURCE || - message.type === messageTypes.TOGGLE_PIN + (message.type === messageTypes.REACTION || + message.type === messageTypes.EDIT_MESSAGE || + message.type === messageTypes.SIDEBAR_SOURCE || + message.type === messageTypes.TOGGLE_PIN) && + !messageSpecs[message.type].canBeSidebarSource ); }