Lint fix.
This commit is contained in:
parent
e0e4cf3df1
commit
a93cbf3548
|
@ -109,10 +109,10 @@ class RoomSettingsViewModel @AssistedInject constructor(@Assisted initialState:
|
||||||
|
|
||||||
private fun shouldShowSaveAction(state: RoomSettingsViewState): Boolean {
|
private fun shouldShowSaveAction(state: RoomSettingsViewState): Boolean {
|
||||||
val summary = state.roomSummary.invoke()
|
val summary = state.roomSummary.invoke()
|
||||||
return summary?.displayName != state.newName ||
|
return summary?.displayName != state.newName
|
||||||
summary?.topic != state.newTopic ||
|
|| summary?.topic != state.newTopic
|
||||||
summary?.canonicalAlias != state.newAlias ||
|
|| summary?.canonicalAlias != state.newAlias
|
||||||
state.newHistoryVisibility != null
|
|| state.newHistoryVisibility != null
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun saveSettings() = withState { state ->
|
private fun saveSettings() = withState { state ->
|
||||||
|
|
Loading…
Reference in New Issue