|
|
@ -42,10 +42,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
const char xorByte = currentKeyBytes[i] ^ 0xff;
|
|
|
|
const char xorByte = currentKeyBytes[i] ^ 0xff;
|
|
|
|
[flippedKey appendBytes:&xorByte length:1];
|
|
|
|
[flippedKey appendBytes:&xorByte length:1];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
OWSAssert(flippedKey.length == currentKey.length);
|
|
|
|
OWSAssert(flippedKey.length == 32);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[identityManager saveRemoteIdentity:flippedKey recipientId:recipientId];
|
|
|
|
[identityManager saveRemoteIdentity:flippedKey recipientId:recipientId];
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
[OWSTableItem itemWithTitle:@"Delete session (Contact Thread Only)"
|
|
|
|
[OWSTableItem itemWithTitle:@"Delete session (Contact Thread Only)"
|
|
|
|