mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Avoid unnecessary lock acquisition.
This commit is contained in:
@@ -60,10 +60,12 @@ class BufferedSenderKeyStore : SignalServiceSenderKeyStore {
|
||||
persistentStore.storeSenderKey(key.address, key.distributionId, record)
|
||||
}
|
||||
|
||||
persistentStore.clearSenderKeySharedWith(clearSharedWith)
|
||||
if (clearSharedWith.isNotEmpty()) {
|
||||
persistentStore.clearSenderKeySharedWith(clearSharedWith)
|
||||
clearSharedWith.clear()
|
||||
}
|
||||
|
||||
updatedKeys.clear()
|
||||
clearSharedWith.clear()
|
||||
}
|
||||
|
||||
private fun UUID.toDistributionId() = DistributionId.from(this)
|
||||
|
||||
Reference in New Issue
Block a user