|
|
@ -18,7 +18,12 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
|
|
@implementation OWSPrimaryStorage (PreKeyStore)
|
|
|
|
@implementation OWSPrimaryStorage (PreKeyStore)
|
|
|
|
|
|
|
|
|
|
|
|
- (NSArray<PreKeyRecord *> *)generatePreKeyRecords:(int)batchSize
|
|
|
|
- (NSArray<PreKeyRecord *> *)generatePreKeyRecords
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return [self generatePreKeyRecords:BATCH_SIZE];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- (NSArray<PreKeyRecord *> *)generatePreKeyRecords:(NSUInteger)batchSize
|
|
|
|
{
|
|
|
|
{
|
|
|
|
NSMutableArray *preKeyRecords = [NSMutableArray array];
|
|
|
|
NSMutableArray *preKeyRecords = [NSMutableArray array];
|
|
|
|
|
|
|
|
|
|
|
@ -42,11 +47,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
return preKeyRecords;
|
|
|
|
return preKeyRecords;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (NSArray<PreKeyRecord *> *)generatePreKeyRecords
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return [self generatePreKeyRecords:BATCH_SIZE];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- (void)storePreKeyRecords:(NSArray<PreKeyRecord *> *)preKeyRecords
|
|
|
|
- (void)storePreKeyRecords:(NSArray<PreKeyRecord *> *)preKeyRecords
|
|
|
|
{
|
|
|
|
{
|
|
|
|
for (PreKeyRecord *record in preKeyRecords) {
|
|
|
|
for (PreKeyRecord *record in preKeyRecords) {
|
|
|
|