copy/paste error

This commit is contained in:
Benoit Marty 2020-11-24 06:20:12 +01:00 committed by Benoit Marty
parent 8dbb984ead
commit 36564f0c75
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ class RoomAliasViewModel @AssistedInject constructor(@Assisted initialState: Roo
}
private fun handleAddAlias() = withState { state ->
val newAlias = (state.newLocalAliasState as? RoomAliasViewState.AddAliasState.Editing)?.value ?: return@withState
val newAlias = (state.publishManuallyState as? RoomAliasViewState.AddAliasState.Editing)?.value ?: return@withState
updateCanonicalAlias(
state.canonicalAlias,
state.alternativeAliases + newAlias