mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-25 11:02:48 +02:00
+7
@@ -79,6 +79,7 @@ class SpaceCreationSettingsViewModel: SpaceCreationSettingsViewModelType, SpaceC
|
||||
addressMessage: addressMessage(with: validationStatus),
|
||||
isAddressValid: isAddressValid(with: validationStatus),
|
||||
avatar: AvatarInput(mxContentUri: nil, matrixItemId: "", displayName: nil),
|
||||
avatarImage: creationParameters.userSelectedAvatar,
|
||||
bindings: bindings)
|
||||
}
|
||||
|
||||
@@ -93,6 +94,8 @@ class SpaceCreationSettingsViewModel: SpaceCreationSettingsViewModelType, SpaceC
|
||||
switch viewAction {
|
||||
case .done:
|
||||
done()
|
||||
case .back:
|
||||
back()
|
||||
case .cancel:
|
||||
cancel()
|
||||
case .pickImage(let sourceRect):
|
||||
@@ -151,6 +154,10 @@ class SpaceCreationSettingsViewModel: SpaceCreationSettingsViewModelType, SpaceC
|
||||
callback?(.cancel)
|
||||
}
|
||||
|
||||
private func back() {
|
||||
callback?(.back)
|
||||
}
|
||||
|
||||
private func pickImage(from sourceRect: CGRect) {
|
||||
callback?(.pickImage(sourceRect))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user