mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
815 B
C
31 lines
815 B
C
4 years ago
|
//
|
||
|
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@class OWSPrimaryStorage;
|
||
|
@class OWSStorage;
|
||
|
@class YapDatabaseReadTransaction;
|
||
|
|
||
|
@interface OWSIncomingMessageFinder : NSObject
|
||
|
|
||
|
- (instancetype)initWithPrimaryStorage:(OWSPrimaryStorage *)primaryStorage NS_DESIGNATED_INITIALIZER;
|
||
|
|
||
|
+ (NSString *)databaseExtensionName;
|
||
|
+ (void)asyncRegisterExtensionWithPrimaryStorage:(OWSStorage *)storage;
|
||
|
|
||
|
/**
|
||
|
* Detects existance of a duplicate incoming message.
|
||
|
*/
|
||
|
- (BOOL)existsMessageWithTimestamp:(uint64_t)timestamp
|
||
|
sourceId:(NSString *)sourceId
|
||
|
sourceDeviceId:(uint32_t)sourceDeviceId
|
||
|
transaction:(YapDatabaseReadTransaction *)transaction;
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|