mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 03:06:14 +00:00
Close the client before deleting data, and ensure the app is restarted, using a cache Index.
This commit is contained in:
committed by
Benoit Marty
parent
200fe59fbb
commit
979ebe4adb
+4
@@ -51,6 +51,10 @@ interface MatrixClient : Closeable {
|
||||
fun pushersService(): PushersService
|
||||
fun notificationService(): NotificationService
|
||||
suspend fun getCacheSize(): Long
|
||||
|
||||
/**
|
||||
* Will close the client and delete the cache data.
|
||||
*/
|
||||
suspend fun clearCache()
|
||||
suspend fun logout()
|
||||
suspend fun loadUserDisplayName(): Result<String>
|
||||
|
||||
+7
@@ -29,6 +29,13 @@ interface MatrixAuthenticationService {
|
||||
suspend fun setHomeserver(homeserver: String): Result<Unit>
|
||||
suspend fun login(username: String, password: String): Result<SessionId>
|
||||
|
||||
/*
|
||||
* Cache index
|
||||
*/
|
||||
|
||||
fun cacheIdx(): Flow<Int>
|
||||
fun incrementCacheIdx()
|
||||
|
||||
/*
|
||||
* OIDC part.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user