Refactor where Dagger Components belongs (in node)
This commit is contained in:
parent
020fd3b458
commit
ae2534488b
14 changed files with 98 additions and 193 deletions
|
|
@ -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 ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue