mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
4d8429186d
This lets us clear the server side queue immediately, and paves the way for retry, give up logic. // FREEBIE
40 lines
1.1 KiB
Objective-C
40 lines
1.1 KiB
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "TSIncomingMessage.h"
|
|
#import "TSInvalidIdentityKeySendingErrorMessage.h"
|
|
#import "TSOutgoingMessage.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class TSNetworkManager;
|
|
@class TSStorageManager;
|
|
@class OWSSignalServiceProtosEnvelope;
|
|
@class OWSSignalServiceProtosDataMessage;
|
|
@class ContactsUpdater;
|
|
@class OWSMessageSender;
|
|
@protocol ContactsManagerProtocol;
|
|
@protocol OWSCallMessageHandler;
|
|
|
|
typedef void (^MessageManagerCompletionBlock)();
|
|
|
|
@interface TSMessagesManager : NSObject
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
+ (instancetype)sharedManager;
|
|
|
|
@property (nonatomic, readonly) YapDatabaseConnection *dbConnection;
|
|
@property (nonatomic, readonly) TSNetworkManager *networkManager;
|
|
@property (nonatomic, readonly) ContactsUpdater *contactsUpdater;
|
|
|
|
- (void)processEnvelope:(OWSSignalServiceProtosEnvelope *)envelope
|
|
completion:(nullable MessageManagerCompletionBlock)completion;
|
|
|
|
- (NSUInteger)unreadMessagesCount;
|
|
- (NSUInteger)unreadMessagesCountExcept:(TSThread *)thread;
|
|
- (NSUInteger)unreadMessagesInThread:(TSThread *)thread;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|