From 75e8bbd67c98f750cce0cbbe2fb1d368aa311af2 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Tue, 18 Jun 2024 19:06:05 +0300 Subject: [PATCH] Handle sending queue recoverable errors the same way as unsent messages. (#2939) --- ElementX/Sources/Services/Timeline/TimelineItemProxy.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElementX/Sources/Services/Timeline/TimelineItemProxy.swift b/ElementX/Sources/Services/Timeline/TimelineItemProxy.swift index 81a4bb613c..af68b34ade 100644 --- a/ElementX/Sources/Services/Timeline/TimelineItemProxy.swift +++ b/ElementX/Sources/Services/Timeline/TimelineItemProxy.swift @@ -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: