Ignore too generic exceptions (temporary code).

This commit is contained in:
Benoit Marty
2024-04-17 23:13:51 +02:00
committed by Benoit Marty
parent d67a9da112
commit 70f7bf7e8d

View File

@@ -464,6 +464,7 @@ class RustMatrixClient(
}
}
@Suppress("TooGenericExceptionThrown")
override suspend fun resolveRoomAlias(roomAlias: RoomAlias): Result<RoomId> = withContext(sessionDispatcher) {
runCatching {
// TODO Waiting for SDK to be released
@@ -472,6 +473,7 @@ class RustMatrixClient(
}
}
@Suppress("TooGenericExceptionThrown")
override suspend fun getRoomPreview(roomIdOrAlias: RoomIdOrAlias): Result<RoomPreview> = withContext(sessionDispatcher) {
runCatching {
// TODO Waiting for SDK to be released