|
|
@ -40,6 +40,13 @@ extern NSString *const TSStorageManagerTrustedKeysCollection;
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
- (nullable OWSRecipientIdentity *)unconfirmedIdentityThatShouldBlockSendingForRecipientId:(NSString *)recipientId;
|
|
|
|
- (nullable OWSRecipientIdentity *)unconfirmedIdentityThatShouldBlockSendingForRecipientId:(NSString *)recipientId;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @param recipientId unique stable identifier for the recipient, e.g. e164 phone number
|
|
|
|
|
|
|
|
* @returns YES if the recipient's id has not been marked as seen (and it's not a TOFU situation)
|
|
|
|
|
|
|
|
* NO if the recipient's current id has been seen, or if it's the users first key
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
- (BOOL)hasUnseenIdentityChangeForRecipientId:(NSString *)recipientId;
|
|
|
|
|
|
|
|
|
|
|
|
- (void)generateNewIdentityKey;
|
|
|
|
- (void)generateNewIdentityKey;
|
|
|
|
- (nullable NSData *)identityKeyForRecipientId:(NSString *)recipientId;
|
|
|
|
- (nullable NSData *)identityKeyForRecipientId:(NSString *)recipientId;
|
|
|
|
- (void)removeIdentityKeyForRecipient:(NSString *)receipientId;
|
|
|
|
- (void)removeIdentityKeyForRecipient:(NSString *)receipientId;
|
|
|
|