Small API change in SDK 0.1.5
This commit is contained in:
parent
d7c8e819cf
commit
18867dc8e6
1 changed files with 2 additions and 2 deletions
|
|
@ -223,9 +223,9 @@ class RustMatrixClient constructor(
|
|||
): Result<ByteArray> =
|
||||
withContext(dispatchers.io) {
|
||||
runCatching {
|
||||
mediaSourceFromUrl(url).use { source ->
|
||||
mediaSourceFromUrl(url).use { mediaSource ->
|
||||
client.getMediaThumbnail(
|
||||
source = source,
|
||||
mediaSource = mediaSource,
|
||||
width = width.toULong(),
|
||||
height = height.toULong()
|
||||
).toUByteArray().toByteArray()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue