Skip to content

Commit 6e442d9

Browse files
mgoldenbergpoljar
authored andcommitted
feat(ffi): rename fields in UploadSource to match AttachmentSource
Signed-of-by: Michael Goldenberg <m@mgoldenberg.net>
1 parent 79c5edd commit 6e442d9

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ pub enum UploadSource {
227227
},
228228
/// Upload source is data in memory
229229
Data {
230-
/// Data being uploaded
231-
data: Vec<u8>,
232-
/// Filename to associate with data
230+
/// Bytes being uploaded
231+
bytes: Vec<u8>,
232+
/// Filename to associate with bytes
233233
filename: String,
234234
},
235235
}
@@ -238,7 +238,7 @@ impl From<UploadSource> for AttachmentSource {
238238
fn from(value: UploadSource) -> Self {
239239
match value {
240240
UploadSource::File { filename } => Self::File(filename.into()),
241-
UploadSource::Data { data, filename } => Self::Data { bytes: data, filename },
241+
UploadSource::Data { bytes, filename } => Self::Data { bytes, filename },
242242
}
243243
}
244244
}

0 commit comments

Comments
 (0)