Skip to content

Commit 35a0327

Browse files
committed
chore(ffi): rename url to filename in the FFI methods for sending attachments
1 parent 9e69b63 commit 35a0327

File tree

1 file changed

+10
-10
lines changed
  • bindings/matrix-sdk-ffi/src/timeline

1 file changed

+10
-10
lines changed

bindings/matrix-sdk-ffi/src/timeline/mod.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ impl Timeline {
293293
#[allow(clippy::too_many_arguments)]
294294
pub fn send_image(
295295
self: Arc<Self>,
296-
url: String,
296+
filename: String,
297297
thumbnail_url: Option<String>,
298298
image_info: ImageInfo,
299299
caption: Option<String>,
@@ -318,7 +318,7 @@ impl Timeline {
318318
.mentions(mentions.map(Into::into));
319319

320320
self.send_attachment(
321-
url,
321+
filename,
322322
image_info.mimetype,
323323
attachment_config,
324324
progress_watcher,
@@ -331,7 +331,7 @@ impl Timeline {
331331
#[allow(clippy::too_many_arguments)]
332332
pub fn send_video(
333333
self: Arc<Self>,
334-
url: String,
334+
filename: String,
335335
thumbnail_url: Option<String>,
336336
video_info: VideoInfo,
337337
caption: Option<String>,
@@ -356,7 +356,7 @@ impl Timeline {
356356
.mentions(mentions.map(Into::into));
357357

358358
self.send_attachment(
359-
url,
359+
filename,
360360
video_info.mimetype,
361361
attachment_config,
362362
progress_watcher,
@@ -369,7 +369,7 @@ impl Timeline {
369369
#[allow(clippy::too_many_arguments)]
370370
pub fn send_audio(
371371
self: Arc<Self>,
372-
url: String,
372+
filename: String,
373373
audio_info: AudioInfo,
374374
caption: Option<String>,
375375
formatted_caption: Option<FormattedBody>,
@@ -391,7 +391,7 @@ impl Timeline {
391391
.mentions(mentions.map(Into::into));
392392

393393
self.send_attachment(
394-
url,
394+
filename,
395395
audio_info.mimetype,
396396
attachment_config,
397397
progress_watcher,
@@ -404,7 +404,7 @@ impl Timeline {
404404
#[allow(clippy::too_many_arguments)]
405405
pub fn send_voice_message(
406406
self: Arc<Self>,
407-
url: String,
407+
filename: String,
408408
audio_info: AudioInfo,
409409
waveform: Vec<u16>,
410410
caption: Option<String>,
@@ -428,7 +428,7 @@ impl Timeline {
428428
.mentions(mentions.map(Into::into));
429429

430430
self.send_attachment(
431-
url,
431+
filename,
432432
audio_info.mimetype,
433433
attachment_config,
434434
progress_watcher,
@@ -441,7 +441,7 @@ impl Timeline {
441441
#[allow(clippy::too_many_arguments)]
442442
pub fn send_file(
443443
self: Arc<Self>,
444-
url: String,
444+
filename: String,
445445
file_info: FileInfo,
446446
caption: Option<String>,
447447
formatted_caption: Option<FormattedBody>,
@@ -463,7 +463,7 @@ impl Timeline {
463463
.mentions(mentions.map(Into::into));
464464

465465
self.send_attachment(
466-
url,
466+
filename,
467467
file_info.mimetype,
468468
attachment_config,
469469
progress_watcher,

0 commit comments

Comments
 (0)