Page MenuHomePhabricator

D13828.id45478.diff
No OneTemporary

D13828.id45478.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:18 PM (20 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2393466
Default Alt Text
D13828.id45478.diff (947 B)

Event Timeline