mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-05 14:26:48 +01:00
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
Block a user