Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3005973
D13159.id43616.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
D13159.id43616.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
@@ -125,7 +125,13 @@
let deliveryIconName;
let deliveryIconColor = `#${item.threadInfo.color}`;
- if (id !== null && id !== undefined) {
+ const notDeliveredP2PMessages =
+ item?.localMessageInfo?.outboundP2PMessageIDs ?? [];
+ if (
+ id !== null &&
+ id !== undefined &&
+ notDeliveredP2PMessages.length === 0
+ ) {
deliveryIconName = 'check-circle';
} else if (sendFailed) {
deliveryIconName = 'x-circle';
@@ -149,6 +155,7 @@
deliveryIconOpacity,
id,
isViewer,
+ item?.localMessageInfo?.outboundP2PMessageIDs,
item.threadInfo.color,
sendFailed,
]);
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
@@ -116,7 +116,14 @@
if (isViewer) {
let deliveryIconSpan;
let deliveryIconColor = threadColor;
- if (id !== null && id !== undefined) {
+
+ const notDeliveredP2PMessages =
+ item?.localMessageInfo?.outboundP2PMessageIDs ?? [];
+ if (
+ id !== null &&
+ id !== undefined &&
+ notDeliveredP2PMessages.length === 0
+ ) {
deliveryIconSpan = <CheckCircleIcon />;
} else if (this.props.sendFailed) {
deliveryIconSpan = <XCircleIcon />;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 19, 5:52 PM (21 h, 36 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2324292
Default Alt Text
D13159.id43616.diff (1 KB)
Attached To
Mode
D13159: [web][native] implement DM messages status visible in UI
Attached
Detach File
Event Timeline
Log In to Comment