mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Have MatrixClient implement GetUrlResolver
This commit is contained in:
committed by
Jorge Martin Espinosa
parent
fd3c671301
commit
d48f5bd8b9
+1
-6
@@ -54,7 +54,7 @@ import kotlinx.coroutines.flow.Flow
|
|||||||
import kotlinx.coroutines.flow.StateFlow
|
import kotlinx.coroutines.flow.StateFlow
|
||||||
import java.util.Optional
|
import java.util.Optional
|
||||||
|
|
||||||
interface MatrixClient {
|
interface MatrixClient : GetUrlResolver {
|
||||||
val sessionId: SessionId
|
val sessionId: SessionId
|
||||||
val deviceId: DeviceId
|
val deviceId: DeviceId
|
||||||
|
|
||||||
@@ -173,11 +173,6 @@ interface MatrixClient {
|
|||||||
*/
|
*/
|
||||||
fun userIdServerName(): String
|
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.
|
* 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.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user