Page MenuHomePhabricator

D8629.diff
No OneTemporary

D8629.diff

diff --git a/lib/shared/edit-messages-utils.js b/lib/shared/edit-messages-utils.js
--- a/lib/shared/edit-messages-utils.js
+++ b/lib/shared/edit-messages-utils.js
@@ -77,11 +77,8 @@
return hasPermission;
}
-function getMessageLabel(
- hasBeenEdited: ?boolean,
- threadInfo: ThreadInfo,
-): ?string {
- const isPending = threadIsPending(threadInfo.id);
+function getMessageLabel(hasBeenEdited: ?boolean, threadID: string): ?string {
+ const isPending = threadIsPending(threadID);
if (hasBeenEdited && !isPending) {
return 'Edited';
}
diff --git a/native/chat/composed-message.react.js b/native/chat/composed-message.react.js
--- a/native/chat/composed-message.react.js
+++ b/native/chat/composed-message.react.js
@@ -190,7 +190,7 @@
);
let inlineEngagement = null;
- const label = getMessageLabel(hasBeenEdited, item.threadInfo);
+ const label = getMessageLabel(hasBeenEdited, item.threadInfo.id);
if (
item.threadCreatedFromMessage ||
Object.keys(item.reactions).length > 0 ||
diff --git a/native/chat/utils.js b/native/chat/utils.js
--- a/native/chat/utils.js
+++ b/native/chat/utils.js
@@ -75,7 +75,7 @@
if (textMessageSendFailed(item)) {
height += failedSendHeight;
}
- const label = getMessageLabel(item.hasBeenEdited, threadInfo);
+ const label = getMessageLabel(item.hasBeenEdited, threadInfo.id);
if (item.threadCreatedFromMessage || Object.keys(item.reactions).length > 0) {
height +=
inlineEngagementStyle.height +
diff --git a/web/chat/composed-message.react.js b/web/chat/composed-message.react.js
--- a/web/chat/composed-message.react.js
+++ b/web/chat/composed-message.react.js
@@ -131,7 +131,7 @@
}
let inlineEngagement = null;
- const label = getMessageLabel(hasBeenEdited, threadInfo);
+ const label = getMessageLabel(hasBeenEdited, threadInfo.id);
if (
(this.props.containsInlineEngagement && item.threadCreatedFromMessage) ||
Object.keys(item.reactions).length > 0 ||

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 2, 4:17 PM (18 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2608179
Default Alt Text
D8629.diff (1 KB)

Event Timeline