This commit is contained in:
Benoit Marty 2020-11-24 06:05:25 +01:00 committed by Benoit Marty
parent 3a06ef3959
commit 0a9b234272
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ import im.vector.app.core.platform.VectorViewModelAction
sealed class RoomAliasAction : VectorViewModelAction {
// Canonical
object ToggleManualPublishForm : RoomAliasAction()
data class SetNewAlias(val aliasLocalPart: String) : RoomAliasAction()
data class SetNewAlias(val alias: String) : RoomAliasAction()
object AddAlias : RoomAliasAction()
data class RemoveAlias(val alias: String) : RoomAliasAction()
data class SetCanonicalAlias(val canonicalAlias: String?) : RoomAliasAction()

View File

@ -181,7 +181,7 @@ class RoomAliasViewModel @AssistedInject constructor(@Assisted initialState: Roo
private fun handleSetNewAlias(action: RoomAliasAction.SetNewAlias) {
setState {
copy(
publishManuallyState = RoomAliasViewState.AddAliasState.Editing(action.aliasLocalPart, Uninitialized)
publishManuallyState = RoomAliasViewState.AddAliasState.Editing(action.alias, Uninitialized)
)
}
}