mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
copy/paste error
This commit is contained in:
parent
8dbb984ead
commit
36564f0c75
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user