Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3396749
D9330.id31875.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
706 B
Referenced Files
None
Subscribers
None
D9330.id31875.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9330: [keyserver/lib] Update isInvalidSidebarSource to check messageSpec.canBeSidebarSource
Attached
Detach File
Event Timeline
Log In to Comment