From 132b59347a4d897f2629b5162db77905f16f6ca9 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Mon, 30 Sep 2019 14:21:21 +1000 Subject: [PATCH] Fix build --- src/org/thoughtcrime/securesms/loki/LokiMessageDatabase.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/loki/LokiMessageDatabase.kt b/src/org/thoughtcrime/securesms/loki/LokiMessageDatabase.kt index 9611c826a3..26d93228e4 100644 --- a/src/org/thoughtcrime/securesms/loki/LokiMessageDatabase.kt +++ b/src/org/thoughtcrime/securesms/loki/LokiMessageDatabase.kt @@ -19,8 +19,8 @@ class LokiMessageDatabase(context: Context, helper: SQLCipherOpenHelper) : Datab @JvmStatic val createTableCommand = "CREATE TABLE $tableName ($messageID INTEGER PRIMARY KEY, $serverID INTEGER DEFAULT 0, $friendRequestStatus INTEGER DEFAULT 0);" } - override fun getServerIDFromQuote(quoteID: Long, author: String): Long? { - val message = DatabaseFactory.getMmsSmsDatabase(context).getMessageFor(quoteID, Address.fromSerialized(author)) + override fun getQuoteServerID(quoteID: Long, quoteeHexEncodedPublicKey: String): Long? { + val message = DatabaseFactory.getMmsSmsDatabase(context).getMessageFor(quoteID, Address.fromSerialized(quoteeHexEncodedPublicKey)) return if (message != null) getServerID(message.getId()) else null }