mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Small API change in SDK 0.1.5
This commit is contained in:
committed by
Benoit Marty
parent
d7c8e819cf
commit
18867dc8e6
+2
-2
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user