Delete temporary file once the room avatar is uploaded

This commit is contained in:
Benoit Marty 2020-10-28 14:30:13 +01:00 committed by Benoit Marty
parent f5e46df309
commit 489bddec5b

View file

@ -210,6 +210,7 @@ class RoomSettingsViewModel @AssistedInject constructor(@Assisted initialState:
{ {
postLoading(false) postLoading(false)
setState { copy(newHistoryVisibility = null) } setState { copy(newHistoryVisibility = null) }
deletePendingAvatar()
_viewEvents.post(RoomSettingsViewEvents.Success) _viewEvents.post(RoomSettingsViewEvents.Success)
}, },
{ {