mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Various test fixes (#873)
* Switch back to macos-12 and see if the tests work * Fix unit tests, add default invited, joined and active member counts to the mock room proxy * Try running UI tests on 14.3 but on an existing iPad simulator * Revert "Try running UI tests on 14.3 but on an existing iPad simulator" This reverts commit b075e7fa384330a9070dc35ed4dded57e0af26e1.
This commit is contained in:
+2
-3
@@ -44,9 +44,6 @@ class MediaUploadPreviewScreenViewModel: MediaUploadPreviewScreenViewModelType,
|
||||
case .send:
|
||||
Task {
|
||||
startLoading()
|
||||
defer {
|
||||
stopLoading()
|
||||
}
|
||||
|
||||
switch await mediaUploadingPreprocessor.processMedia(at: url) {
|
||||
case .success(let mediaInfo):
|
||||
@@ -58,9 +55,11 @@ class MediaUploadPreviewScreenViewModel: MediaUploadPreviewScreenViewModelType,
|
||||
showError(label: L10n.screenMediaUploadPreviewErrorFailedSending)
|
||||
}
|
||||
|
||||
stopLoading()
|
||||
case .failure(let error):
|
||||
MXLog.error("Failed processing media to upload with error: \(error)")
|
||||
showError(label: L10n.screenMediaUploadPreviewErrorFailedProcessing)
|
||||
stopLoading()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user