|
|
@ -38,7 +38,6 @@ NSString *const Signal_Message_MarkAsRead_Identifier = @"Signal_Message_MarkAsRe
|
|
|
|
@property (nonatomic) UIBackgroundTaskIdentifier callBackgroundTask;
|
|
|
|
@property (nonatomic) UIBackgroundTaskIdentifier callBackgroundTask;
|
|
|
|
@property (nonatomic, readonly) OWSMessageSender *messageSender;
|
|
|
|
@property (nonatomic, readonly) OWSMessageSender *messageSender;
|
|
|
|
@property (nonatomic, readonly) OWSMessageFetcherJob *messageFetcherJob;
|
|
|
|
@property (nonatomic, readonly) OWSMessageFetcherJob *messageFetcherJob;
|
|
|
|
@property (nonatomic, readonly) CallUIAdapter *callUIAdapter;
|
|
|
|
|
|
|
|
@property (nonatomic, readonly) NotificationsManager *notificationsManager;
|
|
|
|
@property (nonatomic, readonly) NotificationsManager *notificationsManager;
|
|
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
@end
|
|
|
@ -58,14 +57,12 @@ NSString *const Signal_Message_MarkAsRead_Identifier = @"Signal_Message_MarkAsRe
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return [self initWithMessageFetcherJob:SignalApp.sharedApp.messageFetcherJob
|
|
|
|
return [self initWithMessageFetcherJob:SignalApp.sharedApp.messageFetcherJob
|
|
|
|
storageManager:[TSStorageManager sharedManager]
|
|
|
|
storageManager:[TSStorageManager sharedManager]
|
|
|
|
callUIAdapter:SignalApp.sharedApp.callService.callUIAdapter
|
|
|
|
|
|
|
|
messageSender:[Environment current].messageSender
|
|
|
|
messageSender:[Environment current].messageSender
|
|
|
|
notificationsManager:SignalApp.sharedApp.notificationsManager];
|
|
|
|
notificationsManager:SignalApp.sharedApp.notificationsManager];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (instancetype)initWithMessageFetcherJob:(OWSMessageFetcherJob *)messageFetcherJob
|
|
|
|
- (instancetype)initWithMessageFetcherJob:(OWSMessageFetcherJob *)messageFetcherJob
|
|
|
|
storageManager:(TSStorageManager *)storageManager
|
|
|
|
storageManager:(TSStorageManager *)storageManager
|
|
|
|
callUIAdapter:(CallUIAdapter *)callUIAdapter
|
|
|
|
|
|
|
|
messageSender:(OWSMessageSender *)messageSender
|
|
|
|
messageSender:(OWSMessageSender *)messageSender
|
|
|
|
notificationsManager:(NotificationsManager *)notificationsManager
|
|
|
|
notificationsManager:(NotificationsManager *)notificationsManager
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -74,7 +71,6 @@ NSString *const Signal_Message_MarkAsRead_Identifier = @"Signal_Message_MarkAsRe
|
|
|
|
return self;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_callUIAdapter = callUIAdapter;
|
|
|
|
|
|
|
|
_messageSender = messageSender;
|
|
|
|
_messageSender = messageSender;
|
|
|
|
_messageFetcherJob = messageFetcherJob;
|
|
|
|
_messageFetcherJob = messageFetcherJob;
|
|
|
|
_callBackgroundTask = UIBackgroundTaskInvalid;
|
|
|
|
_callBackgroundTask = UIBackgroundTaskInvalid;
|
|
|
@ -92,6 +88,11 @@ NSString *const Signal_Message_MarkAsRead_Identifier = @"Signal_Message_MarkAsRe
|
|
|
|
return self;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- (CallUIAdapter *)callUIAdapter
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return SignalApp.sharedApp.callService.callUIAdapter;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (void)handleMessageRead:(NSNotification *)notification
|
|
|
|
- (void)handleMessageRead:(NSNotification *)notification
|
|
|
|
{
|
|
|
|
{
|
|
|
|
OWSAssertIsOnMainThread();
|
|
|
|
OWSAssertIsOnMainThread();
|
|
|
|