Remove temp-directory when removing an account

Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
This commit is contained in:
Marcel Müller 2020-12-06 17:47:57 +01:00
Родитель e98835f60f
Коммит 78ad1fbe2d
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -37,6 +37,7 @@
#import "NCExternalSignalingController.h"
#import "NCUserInterfaceController.h"
#import "JDStatusBarNotification.h"
#import "NCChatFileController.h"
@interface NCSettingsController ()
{
@ -320,6 +321,7 @@ NSString * const NCUserProfileImageUpdatedNotification = @"NCUserProfileImageUpd
[[NCSettingsController sharedInstance] cleanUserAndServerStoredValues];
[[NCAPIController sharedInstance] removeProfileImageForAccount:removingAccount];
[[NCDatabaseManager sharedInstance] removeAccountWithAccountId:removingAccount.accountId];
[[[NCChatFileController alloc] init] deleteDownloadDirectoryForAccount:removingAccount];
// Activate any of the inactive accounts
NSArray *inactiveAccounts = [[NCDatabaseManager sharedInstance] inactiveAccounts];