Skip to content

Commit

Permalink
better documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Oct 24, 2024
1 parent e63e1a3 commit d40022f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ElementX/Sources/Screens/CreateRoom/CreateRoomViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,11 @@ class CreateRoomViewModel: CreateRoomViewModelType, CreateRoomViewModelProtocol
actionsSubject.send(.removeImage)
case .updateAddress(let address):
state.addressName = address.toValidAddress
// If this has been called this means that the user wants a custom address not necessarily reflecting the name
// So we disable the two from syncing.
syncNameAndAddress = false
case .updateName(let name):
// Reset the syncing if the name is fully cancelled
if name.isEmpty {
syncNameAndAddress = true
}
Expand Down

0 comments on commit d40022f

Please sign in to comment.