Skip to content

Commit 00941e7

Browse files
fix: message status failed shows sent check mark (#2127)
Co-authored-by: vanGalilea <[email protected]>
1 parent a87b095 commit 00941e7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

package/src/components/Message/MessageSimple/MessageStatus.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ const MessageStatusWithContext = <
5656
);
5757
}
5858

59-
if (isMessageWithStylesReadByAndDateSeparator(message) && !threadList) {
59+
if (threadList || message.status === MessageStatusTypes.FAILED) return null;
60+
61+
if (isMessageWithStylesReadByAndDateSeparator(message)) {
6062
return (
6163
<View style={[styles.statusContainer, statusContainer]}>
6264
{typeof message.readBy === 'number' ? (
@@ -76,11 +78,7 @@ const MessageStatusWithContext = <
7678
);
7779
}
7880

79-
if (
80-
message.status === MessageStatusTypes.RECEIVED &&
81-
message.type !== 'ephemeral' &&
82-
!threadList
83-
) {
81+
if (message.status === MessageStatusTypes.RECEIVED && message.type !== 'ephemeral') {
8482
return (
8583
<View style={[styles.statusContainer, statusContainer]} testID='delivered-container'>
8684
<Check pathFill={grey_dark} {...checkIcon} />

0 commit comments

Comments
 (0)