mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-07-18 21:47:18 +02:00
Update Ghostgram features
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import Foundation
|
||||
import SwiftSignalKit
|
||||
import TelegramCore
|
||||
import AccountContext
|
||||
import WatchBridge
|
||||
|
||||
public final class WatchManagerImpl: WatchManager {
|
||||
private let arguments: WatchManagerArguments?
|
||||
|
||||
public init(arguments: WatchManagerArguments?) {
|
||||
self.arguments = arguments
|
||||
}
|
||||
|
||||
public var watchAppInstalled: Signal<Bool, NoError> {
|
||||
return self.arguments?.appInstalled ?? .single(false)
|
||||
}
|
||||
|
||||
public var navigateToMessageRequested: Signal<EngineMessage.Id, NoError> {
|
||||
return self.arguments?.navigateToMessageRequested ?? .never()
|
||||
}
|
||||
|
||||
public var runningTasks: Signal<WatchRunningTasks?, NoError> {
|
||||
return self.arguments?.runningTasks ?? .single(nil)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user