12 lines
No EOL
306 B
Kotlin
12 lines
No EOL
306 B
Kotlin
package io.element.android.x
|
|
|
|
import androidx.lifecycle.ViewModel
|
|
import io.element.android.x.sdk.matrix.MatrixInstance
|
|
|
|
class MainViewModel : ViewModel() {
|
|
private val matrix = MatrixInstance.getInstance()
|
|
|
|
suspend fun hasSession(): Boolean {
|
|
return matrix.restoreSession() != null
|
|
}
|
|
} |