Files
session-ios/SessionNotificationServiceExtension/NotificationServiceExtensionContext.swift
Morgan Pretty 2edc0f0477 Fixed a few bugs found during testing
• 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
2025-06-11 09:43:44 +10:00

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 }
}