Page MenuHomePhabricator

D13919.id45772.diff
No OneTemporary

D13919.id45772.diff

diff --git a/lib/shared/messages/add-members-message-spec.js b/lib/shared/messages/add-members-message-spec.js
--- a/lib/shared/messages/add-members-message-spec.js
+++ b/lib/shared/messages/add-members-message-spec.js
@@ -231,4 +231,9 @@
messageInfo: AddMembersMessageInfo,
params: ShowInMessagePreviewParams,
) => threadTypeIsThick(params.threadInfo.type),
+
+ getLastUpdatedTime: (
+ messageInfo: AddMembersMessageInfo | RawAddMembersMessageInfo,
+ params: ShowInMessagePreviewParams,
+ ) => (threadTypeIsThick(params.threadInfo.type) ? messageInfo.time : null),
});
diff --git a/lib/shared/messages/join-thread-message-spec.js b/lib/shared/messages/join-thread-message-spec.js
--- a/lib/shared/messages/join-thread-message-spec.js
+++ b/lib/shared/messages/join-thread-message-spec.js
@@ -177,4 +177,9 @@
messageInfo: JoinThreadMessageInfo,
params: ShowInMessagePreviewParams,
) => threadTypeIsThick(params.threadInfo.type),
+
+ getLastUpdatedTime: (
+ messageInfo: JoinThreadMessageInfo | RawJoinThreadMessageInfo,
+ params: ShowInMessagePreviewParams,
+ ) => (threadTypeIsThick(params.threadInfo.type) ? messageInfo.time : null),
});
diff --git a/lib/shared/messages/leave-thread-message-spec.js b/lib/shared/messages/leave-thread-message-spec.js
--- a/lib/shared/messages/leave-thread-message-spec.js
+++ b/lib/shared/messages/leave-thread-message-spec.js
@@ -177,4 +177,9 @@
messageInfo: LeaveThreadMessageInfo,
params: ShowInMessagePreviewParams,
) => threadTypeIsThick(params.threadInfo.type),
+
+ getLastUpdatedTime: (
+ messageInfo: LeaveThreadMessageInfo | RawLeaveThreadMessageInfo,
+ params: ShowInMessagePreviewParams,
+ ) => (threadTypeIsThick(params.threadInfo.type) ? messageInfo.time : null),
});
diff --git a/lib/shared/messages/remove-members-message-spec.js b/lib/shared/messages/remove-members-message-spec.js
--- a/lib/shared/messages/remove-members-message-spec.js
+++ b/lib/shared/messages/remove-members-message-spec.js
@@ -237,5 +237,10 @@
messageInfo: RemoveMembersMessageInfo,
params: ShowInMessagePreviewParams,
) => threadTypeIsThick(params.threadInfo.type),
+
+ getLastUpdatedTime: (
+ messageInfo: RemoveMembersMessageInfo | RawRemoveMembersMessageInfo,
+ params: ShowInMessagePreviewParams,
+ ) => (threadTypeIsThick(params.threadInfo.type) ? messageInfo.time : null),
},
);

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 1:38 PM (19 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2570940
Default Alt Text
D13919.id45772.diff (2 KB)

Event Timeline