Small API change in SDK 0.1.5

This commit is contained in:
Benoit Marty 2023-03-29 09:35:36 +02:00 committed by Benoit Marty
parent cedfde23d1
commit 5c0b3b8129

View file

@ -223,9 +223,9 @@ class RustMatrixClient constructor(
): Result<ByteArray> = ): Result<ByteArray> =
withContext(dispatchers.io) { withContext(dispatchers.io) {
runCatching { runCatching {
mediaSourceFromUrl(url).use { source -> mediaSourceFromUrl(url).use { mediaSource ->
client.getMediaThumbnail( client.getMediaThumbnail(
source = source, mediaSource = mediaSource,
width = width.toULong(), width = width.toULong(),
height = height.toULong() height = height.toULong()
).toUByteArray().toByteArray() ).toUByteArray().toByteArray()