mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 01:15:54 +03:00
Hide save action after saving completed.
This commit is contained in:
parent
b3d4d20195
commit
e0ea0c195b
1 changed files with 3 additions and 2 deletions
|
@ -66,7 +66,8 @@ class RoomSettingsViewModel @AssistedInject constructor(@Assisted initialState:
|
|||
historyVisibilityEvent = room.getStateEvent(EventType.STATE_ROOM_HISTORY_VISIBILITY),
|
||||
roomSummary = async,
|
||||
newName = roomSummary?.displayName,
|
||||
newTopic = roomSummary?.topic
|
||||
newTopic = roomSummary?.topic,
|
||||
newAlias = roomSummary?.canonicalAlias
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -145,7 +146,7 @@ class RoomSettingsViewModel @AssistedInject constructor(@Assisted initialState:
|
|||
{
|
||||
postLoading(false)
|
||||
setState { copy(newHistoryVisibility = null) }
|
||||
setState { copy(showSaveAction = shouldShowSaveAction(this)) }
|
||||
setState { copy(showSaveAction = false) }
|
||||
_viewEvents.post(RoomSettingsViewEvents.Success)
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue