Bump matrix-sdk dependency to 0.8 (#386)

This commit is contained in:
Stu Black
2025-02-17 22:22:16 -05:00
committed by GitHub
parent 9a9bdb4862
commit e66a8c6716
11 changed files with 586 additions and 436 deletions

View File

@@ -5,7 +5,7 @@ use std::{
};
use matrix_sdk::{
media::{MediaFormat, MediaRequest},
media::{MediaFormat, MediaRequestParameters},
ruma::{
events::{
room::{
@@ -157,7 +157,10 @@ async fn download_or_load(
},
Err(_) => {
media
.get_media_content(&MediaRequest { source, format: MediaFormat::File }, true)
.get_media_content(
&MediaRequestParameters { source, format: MediaFormat::File },
true,
)
.await
.and_then(|buffer| {
if let Err(err) =