Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3374641
D7066.id23711.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
972 B
Referenced Files
None
Subscribers
None
D7066.id23711.diff
View Options
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
@@ -64,6 +64,7 @@
...viewProps
} = this.props;
const { id, creator } = item.messageInfo;
+ const { hasBeenEdited } = item;
const { isViewer } = creator;
const alignStyle = isViewer
@@ -134,14 +135,17 @@
let inlineEngagement = null;
if (
item.threadCreatedFromMessage ||
- Object.keys(item.reactions).length > 0
+ Object.keys(item.reactions).length > 0 ||
+ hasBeenEdited
) {
const positioning = isViewer ? 'right' : 'left';
+ const label = hasBeenEdited ? 'Edited' : null;
inlineEngagement = (
<InlineEngagement
threadInfo={item.threadCreatedFromMessage}
reactions={item.reactions}
positioning={positioning}
+ label={label}
/>
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 4:31 PM (20 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2590993
Default Alt Text
D7066.id23711.diff (972 B)
Attached To
Mode
D7066: [native] Displaying 'Edit' labels next to edited messages
Attached
Detach File
Event Timeline
Log In to Comment