Page MenuHomePhabricator

D9330.id32253.diff
No OneTemporary

D9330.id32253.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
@@ -657,10 +657,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
Tue, Dec 3, 9:37 PM (5 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2612745
Default Alt Text
D9330.id32253.diff (706 B)

Event Timeline