mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
SP4: space settings (#5730)
* SP4: Space Settings - Space settings screen implemented - No space upgrade available as per Element web - Need more insights for the space address field - Added settings live update - Added local alias implementation
This commit is contained in:
+3
-3
@@ -94,7 +94,7 @@ class SpaceCreationSettingsService: SpaceCreationSettingsServiceProtocol {
|
||||
}
|
||||
|
||||
private func updateDefaultAddress() {
|
||||
defaultAddress = roomName.toValidAliasLocalPart()
|
||||
defaultAddress = MXTools.validAliasLocalPart(from: roomName)
|
||||
}
|
||||
|
||||
private func validateAddress() {
|
||||
@@ -102,7 +102,7 @@ class SpaceCreationSettingsService: SpaceCreationSettingsServiceProtocol {
|
||||
currentOperation = nil
|
||||
|
||||
guard let userDefinedAddress = self.userDefinedAddress, !userDefinedAddress.isEmpty else {
|
||||
let fullAddress = defaultAddress.fullLocalAlias(with: session)
|
||||
let fullAddress = MXTools.fullLocalAlias(from: defaultAddress, with: session)
|
||||
|
||||
if defaultAddress.isEmpty {
|
||||
addressValidationSubject.send(.none(fullAddress))
|
||||
@@ -116,7 +116,7 @@ class SpaceCreationSettingsService: SpaceCreationSettingsServiceProtocol {
|
||||
}
|
||||
|
||||
private func validate(_ aliasLocalPart: String) {
|
||||
let fullAddress = aliasLocalPart.fullLocalAlias(with: session)
|
||||
let fullAddress = MXTools.fullLocalAlias(from: aliasLocalPart, with: session)
|
||||
|
||||
currentOperation = MXRoomAliasAvailabilityChecker.validate(aliasLocalPart: aliasLocalPart, with: session) { [weak self] result in
|
||||
guard let self = self else { return }
|
||||
|
||||
Reference in New Issue
Block a user