mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Fix issue with save action visibility
This commit is contained in:
parent
da472ea858
commit
e658ef184d
@ -65,7 +65,7 @@ class RoomSettingsViewModel @AssistedInject constructor(@Assisted initialState:
|
||||
RoomSettingsViewState::newTopic,
|
||||
RoomSettingsViewState::newHistoryVisibility,
|
||||
RoomSettingsViewState::roomSummary) { newName,
|
||||
newAlias,
|
||||
newCanonicalAlias,
|
||||
newTopic,
|
||||
newHistoryVisibility,
|
||||
asyncSummary ->
|
||||
@ -74,7 +74,7 @@ class RoomSettingsViewModel @AssistedInject constructor(@Assisted initialState:
|
||||
copy(
|
||||
showSaveAction = summary?.name != newName
|
||||
|| summary?.topic != newTopic
|
||||
|| summary?.canonicalAlias != newAlias
|
||||
|| summary?.canonicalAlias != newCanonicalAlias?.takeIf { it.isNotEmpty() }
|
||||
|| newHistoryVisibility != null
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user