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 {
|
||||
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 ->
|
||||
|
|
Loading…
Reference in New Issue