updated the SDK (#3737)

This commit is contained in:
Mauro
2025-02-04 17:57:39 +01:00
committed by GitHub
parent f0b8775701
commit 6c190cf735
8 changed files with 36 additions and 75 deletions
@@ -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)