Files
session-ios/SessionNetworkingKit/Utilities/ObservableKey+SessionNetworkingKit.swift
Morgan Pretty 939ebfa721 Fixed a home screen refresh issue
• 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
2025-09-15 15:58:30 +10:00

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
}