Page MenuHomePhabricator

D13159.id43658.diff
No OneTemporary

D13159.id43658.diff

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

Mime Type
text/plain
Expires
Sat, Oct 19, 8:40 PM (20 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2324292
Default Alt Text
D13159.id43658.diff (1 KB)

Event Timeline