From 489bddec5b73daf4df93b0d2ea584d67243daeee Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 28 Oct 2020 14:30:13 +0100 Subject: [PATCH] Delete temporary file once the room avatar is uploaded --- .../app/features/roomprofile/settings/RoomSettingsViewModel.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/vector/src/main/java/im/vector/app/features/roomprofile/settings/RoomSettingsViewModel.kt b/vector/src/main/java/im/vector/app/features/roomprofile/settings/RoomSettingsViewModel.kt index e083b6ca0f..32d8f043c3 100644 --- a/vector/src/main/java/im/vector/app/features/roomprofile/settings/RoomSettingsViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/roomprofile/settings/RoomSettingsViewModel.kt @@ -210,6 +210,7 @@ class RoomSettingsViewModel @AssistedInject constructor(@Assisted initialState: { postLoading(false) setState { copy(newHistoryVisibility = null) } + deletePendingAvatar() _viewEvents.post(RoomSettingsViewEvents.Success) }, {