File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
bindings/matrix-sdk-ffi/src/timeline Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -227,9 +227,9 @@ pub enum UploadSource {
227
227
} ,
228
228
/// Upload source is data in memory
229
229
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
233
233
filename : String ,
234
234
} ,
235
235
}
@@ -238,7 +238,7 @@ impl From<UploadSource> for AttachmentSource {
238
238
fn from ( value : UploadSource ) -> Self {
239
239
match value {
240
240
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 } ,
242
242
}
243
243
}
244
244
}
You can’t perform that action at this time.
0 commit comments