Skip to content

Commit

Permalink
Settings: logout forces library resync
Browse files Browse the repository at this point in the history
  • Loading branch information
BLeeEZ committed Mar 19, 2023
1 parent c49edc3 commit 8c733cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Amperfy/SwiftUI/Settings/Server/ServerSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ struct ServerSettingsView: View {
private func logout() {
// reset login credentials -> at new start the login view is presented to auth and resync library
self.appDelegate.storage.loginCredentials = nil
// force resync after login
self.appDelegate.storage.isLibrarySynced = false
self.appDelegate.restartByUser()
}

Expand Down

0 comments on commit 8c733cd

Please sign in to comment.