mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
• Updated the settings screen to be driven via libSession observations • Moved some logic around to remove some imports • Tweaked some logs • Fixed a bug where toggling Fast Mode wouldn't refresh the screen
32 lines
874 B
Swift
32 lines
874 B
Swift
// Copyright (c) 2020 Open Whisper Systems. All rights reserved.
|
|
//
|
|
// stringlint:disable
|
|
|
|
import UIKit
|
|
import SessionUtilitiesKit
|
|
|
|
final class NotificationServiceExtensionContext: AppContext {
|
|
private let dependencies: Dependencies
|
|
let appLaunchTime: Date = Date()
|
|
let reportedApplicationState: UIApplication.State = .background
|
|
|
|
var openSystemSettingsAction: UIAlertAction?
|
|
var wasWokenUpByPushNotification = true
|
|
var shouldProcessIncomingMessages: Bool { true }
|
|
|
|
func canPresentNotifications() -> Bool { true }
|
|
func mainApplicationStateOnLaunch() -> UIApplication.State { .inactive }
|
|
|
|
// MARK: - Initialization
|
|
|
|
init(using dependencies: Dependencies) {
|
|
self.dependencies = dependencies
|
|
}
|
|
|
|
// MARK: - Currently Unused
|
|
|
|
var mainWindow: UIWindow?
|
|
|
|
static func determineDeviceRTL() -> Bool { false }
|
|
}
|