mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
21 lines
484 B
Objective-C
21 lines
484 B
Objective-C
#import "TGBridgeStateSignal.h"
|
|
|
|
#import <WatchCommonWatch/WatchCommonWatch.h>
|
|
|
|
#import "TGBridgeClient.h"
|
|
|
|
@implementation TGBridgeStateSignal
|
|
|
|
+ (SSignal *)synchronizationState
|
|
{
|
|
return [[[TGBridgeClient instance] requestSignalWithSubscription:[[TGBridgeStateSubscription alloc] init]] map:^NSNumber *(id next)
|
|
{
|
|
if ([next isKindOfClass:[NSNumber class]])
|
|
return next;
|
|
|
|
return @(TGBridgeSynchronizationStateSynchronized);
|
|
}];
|
|
}
|
|
|
|
@end
|