Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3104413
D13828.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
947 B
Referenced Files
None
Subscribers
None
D13828.diff
View Options
diff --git a/lib/shared/messages/reaction-message-spec.js b/lib/shared/messages/reaction-message-spec.js
--- a/lib/shared/messages/reaction-message-spec.js
+++ b/lib/shared/messages/reaction-message-spec.js
@@ -7,6 +7,7 @@
type MessageSpec,
type MessageTitleParam,
pushTypes,
+ type ShowInMessagePreviewParams,
} from './message-spec.js';
import { assertSingleMessageInfo, joinResult } from './utils.js';
import type { PlatformDetails } from '../../types/device-types.js';
@@ -225,4 +226,17 @@
canBeRenderedIndependently: false,
validator: rawReactionMessageInfoValidator,
+
+ showInMessagePreview: async (
+ messageInfo: ReactionMessageInfo,
+ params: ShowInMessagePreviewParams,
+ ) => {
+ const originalMessage = await params.fetchMessage(
+ messageInfo.targetMessageID,
+ );
+ if (!originalMessage) {
+ return false;
+ }
+ return originalMessage.creatorID === params.viewerID;
+ },
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 31, 5:16 PM (20 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2393466
Default Alt Text
D13828.diff (947 B)
Attached To
Mode
D13828: [lib] Only show reactions to viewer's messages in MessagePreview
Attached
Detach File
Event Timeline
Log In to Comment