refactor: put it in an object instead of abstract class

This commit is contained in:
0x330a 2022-12-16 16:54:57 +11:00
parent 1b2e734453
commit 5012374a1f
No known key found for this signature in database
GPG Key ID: 267811D6E6A2698C

View File

@ -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