Update SwiftfinApp.swift (#1202)
This commit is contained in:
parent
e5f408a867
commit
4564b51b38
|
@ -106,7 +106,7 @@ struct SwiftfinApp: App {
|
||||||
// - atow, background video playback isn't officially supported
|
// - atow, background video playback isn't officially supported
|
||||||
let backgroundedInterval = Date.now.timeIntervalSince(Defaults[.backgroundTimeStamp])
|
let backgroundedInterval = Date.now.timeIntervalSince(Defaults[.backgroundTimeStamp])
|
||||||
|
|
||||||
if backgroundedInterval > Defaults[.backgroundSignOutInterval] {
|
if Defaults[.signOutOnBackground], backgroundedInterval > Defaults[.backgroundSignOutInterval] {
|
||||||
Defaults[.lastSignedInUserID] = nil
|
Defaults[.lastSignedInUserID] = nil
|
||||||
Container.shared.currentUserSession.reset()
|
Container.shared.currentUserSession.reset()
|
||||||
Notifications[.didSignOut].post()
|
Notifications[.didSignOut].post()
|
||||||
|
|
Loading…
Reference in New Issue