From 5012374a1fa07f3dd2776d639c5e9f37467a9d97 Mon Sep 17 00:00:00 2001 From: 0x330a <92654767+0x330a@users.noreply.github.com> Date: Fri, 16 Dec 2022 16:54:57 +1100 Subject: [PATCH] refactor: put it in an object instead of abstract class --- .../thoughtcrime/securesms/dependencies/SessionUtilModule.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/dependencies/SessionUtilModule.kt b/app/src/main/java/org/thoughtcrime/securesms/dependencies/SessionUtilModule.kt index 0c0446bfdf..0153ff7701 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/dependencies/SessionUtilModule.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/dependencies/SessionUtilModule.kt @@ -11,7 +11,7 @@ import org.thoughtcrime.securesms.crypto.KeyPairUtilities @Module @InstallIn(ActivityRetainedComponent::class) -abstract class SessionUtilModule { +object SessionUtilModule { private fun maybeUserEdSecretKey(context: ApplicationContext): ByteArray? { val edKey = KeyPairUtilities.getUserED25519KeyPair(context) ?: return null