mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Require acknowledgement to send to verified users who have unsigned devices or have changed their identity. (#3215)
* Refactor HeroImage style. * Add a screen to resolve (crypto-related) timeline item send failures. * Refactor send failures. * Update the SDK.
This commit is contained in:
@@ -550,9 +550,10 @@ class TimelineViewModel: TimelineViewModelType, TimelineViewModelProtocol {
|
||||
fatalError("Only events can have send info.")
|
||||
}
|
||||
|
||||
if case .sendingFailed = eventTimelineItem.properties.deliveryStatus {
|
||||
// In the future we will show different errors for the various failure reasons.
|
||||
if case .sendingFailed(.unknown) = eventTimelineItem.properties.deliveryStatus {
|
||||
displayAlert(.sendingFailed)
|
||||
} else if case let .sendingFailed(.verifiedUser(failure)) = eventTimelineItem.properties.deliveryStatus {
|
||||
actionsSubject.send(.displayResolveSendFailure(failure: failure, itemID: itemID))
|
||||
} else if let authenticityMessage = eventTimelineItem.properties.encryptionAuthenticity?.message {
|
||||
displayAlert(.encryptionAuthenticity(authenticityMessage))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user