mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 20:09:04 +00:00
updated the SDK (#3737)
This commit is contained in:
@@ -236,9 +236,9 @@ class CreateRoomViewModel: CreateRoomViewModelType, CreateRoomViewModelProtocol
|
||||
avatarURL = URL(string: url)
|
||||
case .failure(let error):
|
||||
switch error {
|
||||
case .failedUploadingMedia(_, let errorCode):
|
||||
switch errorCode {
|
||||
case .fileTooLarge:
|
||||
case .failedUploadingMedia(let errorKind):
|
||||
switch errorKind {
|
||||
case .tooLarge:
|
||||
state.bindings.alertInfo = AlertInfo(id: .fileTooLarge)
|
||||
default:
|
||||
state.bindings.alertInfo = AlertInfo(id: .failedUploadingMedia)
|
||||
|
||||
Reference in New Issue
Block a user