Page MenuHomePhabricator

D7018.diff
No OneTemporary

D7018.diff

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

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)

Event Timeline