Merge branch 'develop' into feature/fga/space_settings_iteration
This commit is contained in:
commit
ce079e84f5
600 changed files with 3591 additions and 2388 deletions
|
|
@ -194,6 +194,8 @@ interface MatrixClient {
|
|||
* Use [Timeline.markAsRead] instead when possible.
|
||||
*/
|
||||
suspend fun markRoomAsFullyRead(roomId: RoomId, eventId: EventId): Result<Unit>
|
||||
|
||||
suspend fun performDatabaseVacuum(): Result<Unit>
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright (c) 2025 Element Creations Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.libraries.matrix.api.auth
|
||||
|
||||
import io.element.android.libraries.matrix.api.core.SessionId
|
||||
|
||||
sealed class SessionRestorationException(message: String, cause: Throwable? = null) : Exception(message, cause) {
|
||||
data class MissingSession(val sessionId: SessionId) : SessionRestorationException("Session with id $sessionId not found")
|
||||
class InvalidToken : SessionRestorationException("Access token is invalid or expired")
|
||||
}
|
||||
|
|
@ -8,10 +8,14 @@
|
|||
|
||||
package io.element.android.libraries.matrix.api.exception
|
||||
|
||||
sealed class ClientException(message: String, val details: String?) : Exception(message) {
|
||||
class Generic(message: String, details: String?) : ClientException(message, details)
|
||||
class MatrixApi(val kind: ErrorKind, val code: String, message: String, details: String?) : ClientException(message, details)
|
||||
class Other(message: String) : ClientException(message, null)
|
||||
sealed class ClientException(message: String, val details: String?, cause: Throwable? = null) : Exception(message, cause) {
|
||||
class Generic(message: String, details: String?, cause: Throwable? = null) : ClientException(message, details, cause)
|
||||
class MatrixApi(val kind: ErrorKind, val code: String, message: String, details: String?, cause: Throwable? = null) : ClientException(
|
||||
message = message,
|
||||
details = details,
|
||||
cause = cause
|
||||
)
|
||||
class Other(message: String, cause: Throwable? = null) : ClientException(message, null, cause)
|
||||
}
|
||||
|
||||
fun ClientException.isNetworkError(): Boolean {
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ suspend fun RoomList.awaitLoaded(timeout: Duration = Duration.INFINITE) {
|
|||
it is RoomList.LoadingState.Loaded
|
||||
}
|
||||
}
|
||||
} catch (timeoutException: TimeoutCancellationException) {
|
||||
} catch (_: TimeoutCancellationException) {
|
||||
Timber.d("awaitAllRoomsAreLoaded: no response after $timeout")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,12 @@ enum class TraceLogPack(val key: String) {
|
|||
},
|
||||
NOTIFICATION_CLIENT("notification_client") {
|
||||
override val title: String = "Notification Client"
|
||||
},
|
||||
SYNC_PROFILING("sync_profiling") {
|
||||
override val title: String = "Sync Profiling"
|
||||
},
|
||||
LATEST_EVENTS("latest_events") {
|
||||
override val title = "Latest Events"
|
||||
};
|
||||
|
||||
abstract val title: String
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue