Have MatrixClient implement GetUrlResolver

This commit is contained in:
Jorge Martín
2026-08-10 14:16:35 +02:00
committed by Jorge Martin Espinosa
parent fd3c671301
commit d48f5bd8b9
@@ -54,7 +54,7 @@ import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.StateFlow
import java.util.Optional
interface MatrixClient {
interface MatrixClient : GetUrlResolver {
val sessionId: SessionId
val deviceId: DeviceId
@@ -173,11 +173,6 @@ interface MatrixClient {
*/
fun userIdServerName(): String
/**
* Execute generic GET requests through the SDKs internal HTTP client.
*/
suspend fun getUrl(url: String): Result<ByteArray>
/**
* Get a room preview for a given room ID or alias. This is especially useful for rooms that the user is not a member of, or hasn't joined yet.
*/