Skip to content

Commit 8addc2c

Browse files
committed
Fix showing double error indicator when a message is empty and attachment failed to send
1 parent 05abfa9 commit 8addc2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/StreamChatSwiftUI/ChatChannel/MessageList/MessageContainerView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ public struct MessageContainerView<Factory: ViewFactory>: View {
106106
)
107107
: nil
108108

109-
(message.localState == .sendingFailed || message.isBounced) ? SendFailureIndicator() : nil
109+
((message.localState == .sendingFailed || message.isBounced) && !message.text.isEmpty) ?
110+
SendFailureIndicator() : nil
110111
}
111112
)
112113
.background(

0 commit comments

Comments
 (0)