Fix use of sync transaction in async context

This commit is contained in:
Sasha Weiss 2023-08-28 21:34:04 -07:00 committed by GitHub
parent d14198c005
commit bf82a066f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ class LinkedDevicePniKeyManagerImpl: LinkedDevicePniKeyManager {
guard self.kvStore.getBool(
Constants.hasRecordedPniMessageDecryptionErrorKey,
defaultValue: false,
transaction: syncTx
transaction: tx
) else {
logger.info("Skipping validation - no reason to suspect an issue.")
throw Interrupts.noPniDecryptionError