Page MenuHomePhabricator

D9330.id31875.diff
No OneTemporary

D9330.id31875.diff

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
);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 2, 2:16 PM (20 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2607835
Default Alt Text
D9330.id31875.diff (706 B)

Event Timeline