Compare commits
1 Commits
master
...
mkirk/bloc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
40eb2a0f4c |
@ -47,6 +47,7 @@ extern NSString *const TSStorageManagerTrustedKeysCollection;
|
||||
*
|
||||
*/
|
||||
- (nullable OWSRecipientIdentity *)unseenIdentityChangeForRecipientId:(NSString *)recipientId;
|
||||
- (NSArray<OWSRecipientIdentity *> *)unseenIdentityChangesForRecipientIds:(NSArray<NSString *> *)recipientIds;
|
||||
|
||||
- (void)generateNewIdentityKey;
|
||||
- (nullable NSData *)identityKeyForRecipientId:(NSString *)recipientId;
|
||||
|
||||
@ -199,6 +199,23 @@ const NSTimeInterval kIdentityKeyStoreNonBlockingSecondsThreshold = 5.0;
|
||||
}
|
||||
}
|
||||
|
||||
- (NSArray<OWSRecipientIdentity *> *)unseenIdentityChangesForRecipientIds:(NSArray<NSString *> *)recipientIds
|
||||
{
|
||||
NSMutableArray<OWSRecipientIdentity *> *unseenRecipientIdentities = [NSMutableArray new];
|
||||
|
||||
@synchronized([[self class] sharedIdentityKeyLock])
|
||||
{
|
||||
for (NSString *recipientId in recipientIds) {
|
||||
OWSRecipientIdentity *identity = [self unseenIdentityChangeForRecipientId:recipientId];
|
||||
if (identity) {
|
||||
[unseenRecipientIdentities addObject:identity];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return [unseenRecipientIdentities copy];
|
||||
}
|
||||
|
||||
- (nullable OWSRecipientIdentity *)unseenIdentityChangeForRecipientId:(NSString *)recipientId
|
||||
{
|
||||
OWSAssert(recipientId != nil);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user