Handle sending queue recoverable errors the same way as unsent messages. (#2939)

This commit is contained in:
Stefan Ceriu 2024-06-18 19:06:05 +03:00 committed by GitHub
parent 38abd1ddfe
commit 75e8bbd67c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,8 +78,8 @@ class EventTimelineItemProxy {
}
switch localSendState {
case .sendingFailed:
return .sendingFailed
case .sendingFailed(_, let isRecoverable):
return isRecoverable ? .sending : .sendingFailed
case .notSentYet:
return .sending
case .sent: