Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3373619
D7018.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
D7018.diff
View Options
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
@@ -66,6 +66,7 @@
render(): React.Node {
assertComposableMessageType(this.props.item.messageInfo.type);
const { borderRadius, item, threadInfo } = this.props;
+ const { hasBeenEdited } = item;
const { id, creator } = item.messageInfo;
const threadColor = threadInfo.color;
@@ -123,15 +124,18 @@
let inlineEngagement = null;
if (
(this.props.containsInlineEngagement && 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 = (
<div className={css.sidebarMarginBottom}>
<InlineEngagement
threadInfo={item.threadCreatedFromMessage}
reactions={item.reactions}
positioning={positioning}
+ label={label}
/>
</div>
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 10:37 AM (22 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2590206
Default Alt Text
D7018.diff (1 KB)
Attached To
Mode
D7018: [web] Displaying 'Edit' label next to edited messages
Attached
Detach File
Event Timeline
Log In to Comment