mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix build
This commit is contained in:
parent
31bc746984
commit
806ad8a8c9
@ -22,6 +22,9 @@ static bool _isDeviceRotating = false;
|
||||
|
||||
@end
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wincomplete-implementation"
|
||||
|
||||
@implementation UIWindow (OrientationChange)
|
||||
|
||||
+ (void)load {
|
||||
@ -120,8 +123,6 @@ static bool _isDeviceRotating = false;
|
||||
return _isDeviceRotating;
|
||||
}
|
||||
|
||||
- (void)_updateToInterfaceOrientation:(int)arg1 duration:(double)arg2 force:(BOOL)arg3 {
|
||||
[super _updateToInterfaceOrientation:arg1 duration:arg2 force:arg3];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
@ -9,19 +9,19 @@
|
||||
|
||||
@property (nonatomic, readonly) bool isRunning;
|
||||
|
||||
- (instancetype)initWithHandler:(SSignal *(^)(TGBridgeSubscription *))handler fileHandler:(void (^)(NSString *, NSDictionary *))fileHandler dispatchOnQueue:(void (^)(void (^)(void)))dispatchOnQueue logFunction:(void (^)(NSString *))logFunction allowBackgroundTimeExtension:(void (^)())allowBackgroundTimeExtension;
|
||||
- (instancetype _Nonnull)initWithHandler:(SSignal * _Nullable (^ _Nonnull)(TGBridgeSubscription * _Nullable))handler fileHandler:(void (^ _Nonnull)(NSString * _Nullable, NSDictionary * _Nullable))fileHandler dispatchOnQueue:(void (^ _Nonnull)(void (^ _Nonnull)(void)))dispatchOnQueue logFunction:(void (^ _Nonnull)(NSString * _Nullable))logFunction allowBackgroundTimeExtension:(void (^ _Nonnull)())allowBackgroundTimeExtension;
|
||||
- (void)startRunning;
|
||||
|
||||
- (SSignal *)watchAppInstalledSignal;
|
||||
- (SSignal *)runningRequestsSignal;
|
||||
- (SSignal * _Nonnull)watchAppInstalledSignal;
|
||||
- (SSignal * _Nonnull)runningRequestsSignal;
|
||||
|
||||
- (void)setAuthorized:(bool)authorized userId:(int32_t)userId;
|
||||
- (void)setMicAccessAllowed:(bool)allowed;
|
||||
- (void)setStartupData:(NSDictionary *)data;
|
||||
- (void)setStartupData:(NSDictionary * _Nullable)data;
|
||||
- (void)pushContext;
|
||||
|
||||
- (void)sendFileWithURL:(NSURL *)url metadata:(NSDictionary *)metadata asMessageData:(bool)asMessageData;
|
||||
- (void)sendFileWithData:(NSData *)data metadata:(NSDictionary *)metadata errorHandler:(void (^)(void))errorHandler;
|
||||
- (void)sendFileWithURL:(NSURL * _Nonnull)url metadata:(NSDictionary * _Nullable)metadata asMessageData:(bool)asMessageData;
|
||||
- (void)sendFileWithData:(NSData * _Nonnull)data metadata:(NSDictionary * _Nullable)metadata errorHandler:(void (^ _Nullable)(void))errorHandler;
|
||||
|
||||
- (NSInteger)wakeupNetwork;
|
||||
- (void)suspendNetworkIfReady:(NSInteger)token;
|
||||
|
@ -70,7 +70,7 @@ public final class WatchCommunicationManager {
|
||||
let _ = WatchAudioHandler.handleFile(path: path, metadata: metadata, manager: strongSelf).start()
|
||||
}
|
||||
}, dispatchOnQueue: { [weak self] block in
|
||||
if let strongSelf = self, let block = block {
|
||||
if let strongSelf = self {
|
||||
strongSelf.queue.justDispatch(block)
|
||||
}
|
||||
}, logFunction: { value in
|
||||
@ -156,7 +156,7 @@ public final class WatchCommunicationManager {
|
||||
|
||||
private var watchAppInstalled: Signal<Bool, NoError> {
|
||||
return Signal { subscriber in
|
||||
let disposable = self.server.watchAppInstalledSignal()?.start(next: { value in
|
||||
let disposable = self.server.watchAppInstalledSignal().start(next: { value in
|
||||
if let value = value as? NSNumber {
|
||||
subscriber.putNext(value.boolValue)
|
||||
}
|
||||
@ -169,7 +169,7 @@ public final class WatchCommunicationManager {
|
||||
|
||||
private var runningTasks: Signal<WatchRunningTasks?, NoError> {
|
||||
return Signal { subscriber in
|
||||
let disposable = self.server.runningRequestsSignal()?.start(next: { value in
|
||||
let disposable = self.server.runningRequestsSignal().start(next: { value in
|
||||
if let value = value as? Dictionary<String, Any> {
|
||||
if let running = value["running"] as? Bool, let version = value["version"] as? Int32 {
|
||||
subscriber.putNext(WatchRunningTasks(running: running, version: version))
|
||||
|
Loading…
x
Reference in New Issue
Block a user