diff --git a/Podfile b/Podfile index b18fb76f4..69ef648f8 100644 --- a/Podfile +++ b/Podfile @@ -4,7 +4,7 @@ source 'https://github.com/CocoaPods/Specs.git' target 'Signal' do pod 'SocketRocket', :git => 'https://github.com/facebook/SocketRocket.git' pod 'AxolotlKit', git: 'https://github.com/WhisperSystems/SignalProtocolKit.git' - pod 'SignalServiceKit', git: 'https://github.com/WhisperSystems/SignalServiceKit.git', branch: 'mkirk/censorship-circumvention' + pod 'SignalServiceKit', git: 'https://github.com/WhisperSystems/SignalServiceKit.git', branch: 'master' #pod 'SignalServiceKit', path: '../SignalServiceKit' pod 'OpenSSL' pod 'PastelogKit', '~> 1.3' diff --git a/Podfile.lock b/Podfile.lock index c6594101c..8a70a1a8d 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -121,7 +121,7 @@ DEPENDENCIES: - OpenSSL - PastelogKit (~> 1.3) - SCWaveformView (~> 1.0) - - SignalServiceKit (from `https://github.com/WhisperSystems/SignalServiceKit.git`, branch `mkirk/censorship-circumvention`) + - SignalServiceKit (from `https://github.com/WhisperSystems/SignalServiceKit.git`, branch `master`) - SocketRocket (from `https://github.com/facebook/SocketRocket.git`) - ZXingObjC @@ -129,7 +129,7 @@ EXTERNAL SOURCES: AxolotlKit: :git: https://github.com/WhisperSystems/SignalProtocolKit.git SignalServiceKit: - :branch: mkirk/censorship-circumvention + :branch: master :git: https://github.com/WhisperSystems/SignalServiceKit.git SocketRocket: :git: https://github.com/facebook/SocketRocket.git @@ -139,7 +139,7 @@ CHECKOUT OPTIONS: :commit: 714f5ebe199ecc999b33c6f97a4bb57e2db90e75 :git: https://github.com/WhisperSystems/SignalProtocolKit.git SignalServiceKit: - :commit: 78515377b14f1055c4a87548a7899650b753ce52 + :commit: a9340b06fd6549766ab537b2d7d603bf96f82504 :git: https://github.com/WhisperSystems/SignalServiceKit.git SocketRocket: :commit: 41b57bb2fc292a814f758441a05243eb38457027 @@ -170,6 +170,6 @@ SPEC CHECKSUMS: YapDatabase: b1e43555a34a5298e23a045be96817a5ef0da58f ZXingObjC: bf15b3814f7a105b6d99f47da2333c93a063650a -PODFILE CHECKSUM: e09325f010ba0ef1fd0bfa07f665e7be73c43ee0 +PODFILE CHECKSUM: cb24c78080551874a45d1a20de4a1bef7427b41f COCOAPODS: 1.0.1 diff --git a/Signal/Signal-Prefix.pch b/Signal/Signal-Prefix.pch index c8ddcdfe5..30e5aba65 100644 --- a/Signal/Signal-Prefix.pch +++ b/Signal/Signal-Prefix.pch @@ -16,6 +16,7 @@ #endif #import "iOSVersions.h" + #import #define SignalAlertView(title,msg) [[[UIAlertView alloc] initWithTitle:title message:msg delegate:nil cancelButtonTitle:NSLocalizedString(@"OK", @"") otherButtonTitles:nil, nil] show] #define SignalReportError [Pastelog reportErrorAndSubmitLogsWithAlertTitle:NSLocalizedString(@"ERROR_WAS_DETECTED_TITLE", @"") alertBody:NSLocalizedString(@"ERROR_WAS_DETECTED_SUBMIT", @"")]; diff --git a/Signal/src/AppDelegate.m b/Signal/src/AppDelegate.m index bf9e9904a..13a1aecb6 100644 --- a/Signal/src/AppDelegate.m +++ b/Signal/src/AppDelegate.m @@ -238,8 +238,12 @@ static NSString *const kURLHostVerifyPrefix = @"verify"; // signing. [TSSocketManager becomeActiveFromForeground]; [[Environment getCurrent].contactsManager verifyABPermission]; + + // This will fetch new messages, if we're using domain + // fronting. + [[PushManager sharedManager] applicationDidBecomeActive]; }]; - + [self removeScreenProtection]; } diff --git a/Signal/src/Models/OWSMessagesBubblesSizeCalculator.h b/Signal/src/Models/OWSMessagesBubblesSizeCalculator.h index bbce01dd6..897fefcb5 100644 --- a/Signal/src/Models/OWSMessagesBubblesSizeCalculator.h +++ b/Signal/src/Models/OWSMessagesBubblesSizeCalculator.h @@ -3,6 +3,7 @@ #import NS_SWIFT_NAME(MessagesBubblesSizeCalculator) + @interface OWSMessagesBubblesSizeCalculator : JSQMessagesBubblesSizeCalculator - (CGSize)messageBubbleSizeForMessageData:(id)messageData diff --git a/Signal/src/network/PushManager.h b/Signal/src/network/PushManager.h index 38d8a97db..020fe0d09 100644 --- a/Signal/src/network/PushManager.h +++ b/Signal/src/network/PushManager.h @@ -85,6 +85,7 @@ typedef void (^pushTokensSuccessBlock)(NSString *pushToken, NSString *voipToken) forLocalNotification:(UILocalNotification *)notification withResponseInfo:(NSDictionary *)responseInfo completionHandler:(void (^)())completionHandler; +- (void)applicationDidBecomeActive; @end diff --git a/Signal/src/network/PushManager.m b/Signal/src/network/PushManager.m index de3b45e4e..41dfabe3a 100644 --- a/Signal/src/network/PushManager.m +++ b/Signal/src/network/PushManager.m @@ -162,6 +162,10 @@ } } +- (void)applicationDidBecomeActive { + [self.messageFetcherJob runAsync]; +} + - (UILocalNotification *)closeVOIPBackgroundTask { [[UIApplication sharedApplication] endBackgroundTask:_callBackgroundTask]; _callBackgroundTask = UIBackgroundTaskInvalid;