From 063e0967dff9fe97823b08a93f2f7727762503b1 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Wed, 5 Jun 2019 10:19:19 +1000 Subject: [PATCH] Clean --- .../thoughtcrime/securesms/loki/LokiPreKeyBundleStore.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/org/thoughtcrime/securesms/loki/LokiPreKeyBundleStore.kt b/src/org/thoughtcrime/securesms/loki/LokiPreKeyBundleStore.kt index 5c81f37630..e7afe1a7b7 100644 --- a/src/org/thoughtcrime/securesms/loki/LokiPreKeyBundleStore.kt +++ b/src/org/thoughtcrime/securesms/loki/LokiPreKeyBundleStore.kt @@ -3,22 +3,22 @@ package org.thoughtcrime.securesms.loki import android.content.Context import org.thoughtcrime.securesms.database.DatabaseFactory import org.whispersystems.libsignal.state.PreKeyBundle -import org.whispersystems.signalservice.loki.messaging.LokiPreKeyBundleStore +import org.whispersystems.signalservice.loki.messaging.LokiPreKeyBundleStoreProtocol class LokiPreKeyBundleStore(val context: Context) : LokiPreKeyBundleStoreProtocol { companion object { - val FILE_LOCK = Object() + private val fileLock = Object() } override fun getPreKeyBundle(pubKey: String): PreKeyBundle? { - synchronized (FILE_LOCK) { + synchronized (fileLock) { return DatabaseFactory.getLokiPreKeyBundleDatabase(context).getPreKeyBundle(pubKey) } } override fun removePreKeyBundle(pubKey: String) { - synchronized (FILE_LOCK) { + synchronized (fileLock) { DatabaseFactory.getLokiPreKeyBundleDatabase(context).removePreKeyBundle(pubKey) } }