mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Handle API changes from Rust. (#506)
There are some bad assumptions about profile changes in here. * Remove assumption FIXME's Profile changes that come from other members will be state event of None. * Bump SDK version.
This commit is contained in:
+4
-4
@@ -22,10 +22,12 @@ struct TimelineDeliveryStatusView: View {
|
||||
|
||||
private var systemImageName: String {
|
||||
switch deliveryStatus {
|
||||
case .sending, .unknown:
|
||||
case .sending:
|
||||
return "circle"
|
||||
case .sent:
|
||||
return "checkmark.circle"
|
||||
case .sendingFailed:
|
||||
return "exclamationmark.circle"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,12 +35,10 @@ struct TimelineDeliveryStatusView: View {
|
||||
self.deliveryStatus = deliveryStatus
|
||||
|
||||
switch deliveryStatus {
|
||||
case .sending:
|
||||
case .sending, .sendingFailed:
|
||||
showDeliveryStatus = true
|
||||
case let .sent(elapsedTime: elapsedTime):
|
||||
showDeliveryStatus = elapsedTime < 3
|
||||
case .unknown:
|
||||
showDeliveryStatus = false
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user