Page MenuHomePhabricator

D13828.diff
No OneTemporary

D13828.diff

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

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)

Event Timeline