mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-20 21:59:52 -07:00
Bump matrix-sdk dependency to 0.8 (#386)
This commit is contained in:
parent
9a9bdb4862
commit
e66a8c6716
11 changed files with 586 additions and 436 deletions
|
@ -14,7 +14,7 @@ use url::Url;
|
|||
|
||||
use matrix_sdk::{
|
||||
attachment::AttachmentConfig,
|
||||
media::{MediaFormat, MediaRequest},
|
||||
media::{MediaFormat, MediaRequestParameters},
|
||||
room::Room as MatrixRoom,
|
||||
ruma::{
|
||||
events::reaction::ReactionEventContent,
|
||||
|
@ -276,7 +276,7 @@ impl ChatState {
|
|||
}
|
||||
|
||||
if !filename.exists() || flags.contains(DownloadFlags::FORCE) {
|
||||
let req = MediaRequest { source, format: MediaFormat::File };
|
||||
let req = MediaRequestParameters { source, format: MediaFormat::File };
|
||||
|
||||
let bytes =
|
||||
media.get_media_content(&req, true).await.map_err(IambError::from)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue