Refactor where Dagger Components belongs (in node)

This commit is contained in:
ganfra 2023-01-12 21:14:48 +01:00
parent 020fd3b458
commit ae2534488b
14 changed files with 98 additions and 193 deletions

View file

@ -57,6 +57,10 @@ class Matrix @Inject constructor(
return sessionStore.isLoggedIn()
}
suspend fun getLatestSessionId(): SessionId? = withContext(coroutineDispatchers.io){
sessionStore.getLatestSession()?.sessionId()
}
suspend fun restoreSession() = withContext(coroutineDispatchers.io) {
sessionStore.getLatestSession()
?.let { session ->