Update SwiftfinApp.swift (#1202)

This commit is contained in:
Ethan Pippin 2024-08-20 00:14:07 -06:00 committed by GitHub
parent e5f408a867
commit 4564b51b38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ struct SwiftfinApp: App {
// - atow, background video playback isn't officially supported
let backgroundedInterval = Date.now.timeIntervalSince(Defaults[.backgroundTimeStamp])
if backgroundedInterval > Defaults[.backgroundSignOutInterval] {
if Defaults[.signOutOnBackground], backgroundedInterval > Defaults[.backgroundSignOutInterval] {
Defaults[.lastSignedInUserID] = nil
Container.shared.currentUserSession.reset()
Notifications[.didSignOut].post()