Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3397171
D8629.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8629.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D8629: [lib/native/web] update getMessageLabel parameters
Attached
Detach File
Event Timeline
Log In to Comment