mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Handling cancelled as a sendingFailed case (#1161)
* handling cancelled as a sendingFailed case * changelog
This commit is contained in:
@@ -74,8 +74,6 @@ struct TimelineItemStatusView: View {
|
|||||||
context.sendFailedConfirmationDialogInfo = .init(transactionID: timelineItem.properties.transactionID)
|
context.sendFailedConfirmationDialogInfo = .init(transactionID: timelineItem.properties.transactionID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case .cancelled:
|
|
||||||
EmptyView()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ enum TimelineItemDeliveryStatus: Hashable {
|
|||||||
case sending
|
case sending
|
||||||
case sent
|
case sent
|
||||||
case sendingFailed
|
case sendingFailed
|
||||||
case cancelled
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A light wrapper around event timeline items returned from Rust.
|
/// A light wrapper around event timeline items returned from Rust.
|
||||||
@@ -66,12 +65,11 @@ struct EventTimelineItemProxy {
|
|||||||
switch localSendState {
|
switch localSendState {
|
||||||
case .notSentYet:
|
case .notSentYet:
|
||||||
return .sending
|
return .sending
|
||||||
case .sendingFailed:
|
// cancelled is exactly like sendingFailed but does not contain an error
|
||||||
|
case .sendingFailed, .cancelled:
|
||||||
return .sendingFailed
|
return .sendingFailed
|
||||||
case .sent:
|
case .sent:
|
||||||
return .sent
|
return .sent
|
||||||
case .cancelled:
|
|
||||||
return .cancelled
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Handled the cancelled state of a message properly as a failure state.
|
||||||
Reference in New Issue
Block a user