Skip to content

Commit

Permalink
chore: PR Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-coye committed Jun 7, 2024
1 parent e103086 commit f4c7a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kDriveCore/Data/Cache/AccountManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ public class AccountManager: RefreshTokenDelegate, AccountManageable {

if accountToDelete == currentAccount {
DDLogInfo("matched \(currentAccount) to \(accountToDelete), removing current account")
notificationHelper.sendDisconnectedNotification()
logoutCurrentAccountAndSwitchToNextIfPossible()
} else {
DDLogInfo("user with token error \(accountToDelete) do not match current account, doing nothing")
Expand Down Expand Up @@ -456,7 +457,6 @@ public class AccountManager: RefreshTokenDelegate, AccountManageable {
Task { @MainActor in
if let currentAccount {
removeTokenAndAccount(account: currentAccount)
notificationHelper.sendDisconnectedNotification()
}

if let nextAccount = accounts.first {
Expand Down

0 comments on commit f4c7a8b

Please sign in to comment.