Hide save action after saving completed.
This commit is contained in:
parent
b3d4d20195
commit
e0ea0c195b
@ -66,7 +66,8 @@ class RoomSettingsViewModel @AssistedInject constructor(@Assisted initialState:
|
|||||||
historyVisibilityEvent = room.getStateEvent(EventType.STATE_ROOM_HISTORY_VISIBILITY),
|
historyVisibilityEvent = room.getStateEvent(EventType.STATE_ROOM_HISTORY_VISIBILITY),
|
||||||
roomSummary = async,
|
roomSummary = async,
|
||||||
newName = roomSummary?.displayName,
|
newName = roomSummary?.displayName,
|
||||||
newTopic = roomSummary?.topic
|
newTopic = roomSummary?.topic,
|
||||||
|
newAlias = roomSummary?.canonicalAlias
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -145,7 +146,7 @@ class RoomSettingsViewModel @AssistedInject constructor(@Assisted initialState:
|
|||||||
{
|
{
|
||||||
postLoading(false)
|
postLoading(false)
|
||||||
setState { copy(newHistoryVisibility = null) }
|
setState { copy(newHistoryVisibility = null) }
|
||||||
setState { copy(showSaveAction = shouldShowSaveAction(this)) }
|
setState { copy(showSaveAction = false) }
|
||||||
_viewEvents.post(RoomSettingsViewEvents.Success)
|
_viewEvents.post(RoomSettingsViewEvents.Success)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user