Lint fix.

This commit is contained in:
onurays 2020-06-29 06:43:36 +03:00 committed by Benoit Marty
parent e0e4cf3df1
commit a93cbf3548
1 changed files with 4 additions and 4 deletions

View File

@ -109,10 +109,10 @@ class RoomSettingsViewModel @AssistedInject constructor(@Assisted initialState:
private fun shouldShowSaveAction(state: RoomSettingsViewState): Boolean {
val summary = state.roomSummary.invoke()
return summary?.displayName != state.newName ||
summary?.topic != state.newTopic ||
summary?.canonicalAlias != state.newAlias ||
state.newHistoryVisibility != null
return summary?.displayName != state.newName
|| summary?.topic != state.newTopic
|| summary?.canonicalAlias != state.newAlias
|| state.newHistoryVisibility != null
}
private fun saveSettings() = withState { state ->