Fix double creation of NotificationsManager singleton.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-03-31 23:25:30 -04:00
parent 8374ca149e
commit 5ff454fd90
3 changed files with 5 additions and 3 deletions

View File

@ -123,7 +123,7 @@ EXTERNAL SOURCES:
AxolotlKit:
:git: https://github.com/WhisperSystems/SignalProtocolKit.git
SignalServiceKit:
:path: ../SignalServiceKit
:path: "../SignalServiceKit"
SocketRocket:
:git: https://github.com/facebook/SocketRocket.git

View File

@ -21,7 +21,7 @@ class CallNotificationsAdapter: NSObject {
// if #available(iOS 10.0, *) {
// adaptee = UserNotificationsAdaptee()
// } else {
adaptee = NotificationsManager()
adaptee = Environment.getCurrent().notificationsManager
// }
}

View File

@ -17,12 +17,14 @@
@interface NotificationsManager ()
@property SystemSoundID newMessageSound;
@property (nonatomic) SystemSoundID newMessageSound;
@property (nonatomic, readonly) NSMutableDictionary<NSString *, UILocalNotification *> *currentNotifications;
@property (nonatomic, readonly) NotificationType notificationPreviewType;
@end
#pragma mark -
@implementation NotificationsManager
- (instancetype)init