mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
• Added App, Database and Network Lifecycle ObservableEvents • Fixed a bug where log messages included the prefixes twice • Fixed an issue where the home screen wouldn't refresh after a background fetch
24 lines
559 B
Swift
24 lines
559 B
Swift
// Copyright © 2025 Rangeproof Pty Ltd. All rights reserved.
|
|
//
|
|
// stringlint:disable
|
|
|
|
import Foundation
|
|
import SessionUtilitiesKit
|
|
|
|
public extension ObservableKey {
|
|
static func networkLifecycle(_ event: NetworkLifecycle) -> ObservableKey {
|
|
ObservableKey("networkLifecycle-\(event)", .networkLifecycle)
|
|
}
|
|
}
|
|
|
|
public extension GenericObservableKey {
|
|
static let networkLifecycle: GenericObservableKey = "networkLifecycle"
|
|
}
|
|
|
|
// MARK: - NetworkLifecycle
|
|
|
|
public enum NetworkLifecycle: String, Sendable {
|
|
case suspended
|
|
case resumed
|
|
}
|