diff --git a/bindings/matrix-sdk-ffi/src/timeline/mod.rs b/bindings/matrix-sdk-ffi/src/timeline/mod.rs index 2c4798a63a..bcb486f307 100644 --- a/bindings/matrix-sdk-ffi/src/timeline/mod.rs +++ b/bindings/matrix-sdk-ffi/src/timeline/mod.rs @@ -298,6 +298,7 @@ impl Timeline { image_info: ImageInfo, caption: Option, formatted_caption: Option, + mentions: Option, progress_watcher: Option>, use_send_queue: bool, ) -> Arc { @@ -313,7 +314,8 @@ impl Timeline { .thumbnail(thumbnail) .info(attachment_info) .caption(caption) - .formatted_caption(formatted_caption); + .formatted_caption(formatted_caption) + .mentions(mentions.map(Into::into)); self.send_attachment( url, @@ -334,6 +336,7 @@ impl Timeline { video_info: VideoInfo, caption: Option, formatted_caption: Option, + mentions: Option, progress_watcher: Option>, use_send_queue: bool, ) -> Arc { @@ -349,7 +352,8 @@ impl Timeline { .thumbnail(thumbnail) .info(attachment_info) .caption(caption) - .formatted_caption(formatted_caption.map(Into::into)); + .formatted_caption(formatted_caption.map(Into::into)) + .mentions(mentions.map(Into::into)); self.send_attachment( url, @@ -362,12 +366,14 @@ impl Timeline { })) } + #[allow(clippy::too_many_arguments)] pub fn send_audio( self: Arc, url: String, audio_info: AudioInfo, caption: Option, formatted_caption: Option, + mentions: Option, progress_watcher: Option>, use_send_queue: bool, ) -> Arc { @@ -381,7 +387,8 @@ impl Timeline { let attachment_config = AttachmentConfig::new() .info(attachment_info) .caption(caption) - .formatted_caption(formatted_caption.map(Into::into)); + .formatted_caption(formatted_caption.map(Into::into)) + .mentions(mentions.map(Into::into)); self.send_attachment( url, @@ -401,6 +408,7 @@ impl Timeline { audio_info: AudioInfo, waveform: Vec, caption: Option, + mentions: Option, formatted_caption: Option, progress_watcher: Option>, use_send_queue: bool, @@ -416,7 +424,8 @@ impl Timeline { let attachment_config = AttachmentConfig::new() .info(attachment_info) .caption(caption) - .formatted_caption(formatted_caption.map(Into::into)); + .formatted_caption(formatted_caption.map(Into::into)) + .mentions(mentions.map(Into::into)); self.send_attachment( url, @@ -429,12 +438,14 @@ impl Timeline { })) } + #[allow(clippy::too_many_arguments)] pub fn send_file( self: Arc, url: String, file_info: FileInfo, caption: Option, formatted_caption: Option, + mentions: Option, progress_watcher: Option>, use_send_queue: bool, ) -> Arc { @@ -448,7 +459,8 @@ impl Timeline { let attachment_config = AttachmentConfig::new() .info(attachment_info) .caption(caption) - .formatted_caption(formatted_caption.map(Into::into)); + .formatted_caption(formatted_caption.map(Into::into)) + .mentions(mentions.map(Into::into)); self.send_attachment( url,