mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 11:05:25 +00:00
refactor: put it in an object instead of abstract class
This commit is contained in:
parent
1b2e734453
commit
5012374a1f
@ -11,7 +11,7 @@ import org.thoughtcrime.securesms.crypto.KeyPairUtilities
|
|||||||
|
|
||||||
@Module
|
@Module
|
||||||
@InstallIn(ActivityRetainedComponent::class)
|
@InstallIn(ActivityRetainedComponent::class)
|
||||||
abstract class SessionUtilModule {
|
object SessionUtilModule {
|
||||||
|
|
||||||
private fun maybeUserEdSecretKey(context: ApplicationContext): ByteArray? {
|
private fun maybeUserEdSecretKey(context: ApplicationContext): ByteArray? {
|
||||||
val edKey = KeyPairUtilities.getUserED25519KeyPair(context) ?: return null
|
val edKey = KeyPairUtilities.getUserED25519KeyPair(context) ?: return null
|
||||||
|
Loading…
Reference in New Issue
Block a user