Fix double creation of NotificationsManager singleton.
// FREEBIE
This commit is contained in:
parent
8374ca149e
commit
5ff454fd90
|
@ -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
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ class CallNotificationsAdapter: NSObject {
|
|||
// if #available(iOS 10.0, *) {
|
||||
// adaptee = UserNotificationsAdaptee()
|
||||
// } else {
|
||||
adaptee = NotificationsManager()
|
||||
adaptee = Environment.getCurrent().notificationsManager
|
||||
// }
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue