File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
matrix-sdk-ui/src/timeline/event_item
matrix-sdk/src/send_queue Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -91,14 +91,15 @@ pub enum EventSendState {
91
91
/// This type represents the "send progress" of a local event timeline item.
92
92
#[ derive( Clone , Debug ) ]
93
93
pub enum EventSendProgress {
94
- /// A media is being uploaded.
94
+ /// A media (consisting of a file and possibly a thumbnail) is being
95
+ /// uploaded.
95
96
MediaUpload {
96
97
/// The index of the media within the transaction. A file and its
97
98
/// thumbnail share the same index.
98
99
index : u64 ,
99
100
100
- /// The current combined upload progress for both the file and,
101
- /// if it exists, its thumbnail.
102
- progress : RelativeTransmissionProgress ,
101
+ /// The combined upload progress across the file and, if existing, its
102
+ /// thumbnail.
103
+ progress : AbstractProgress ,
103
104
} ,
104
105
}
Original file line number Diff line number Diff line change @@ -2246,7 +2246,8 @@ pub enum RoomSendQueueUpdate {
2246
2246
event_id : OwnedEventId ,
2247
2247
} ,
2248
2248
2249
- /// A media upload has made progress.
2249
+ /// A media upload (consisting of a file and possibly a thumbnail) has made
2250
+ /// progress.
2250
2251
MediaUpload {
2251
2252
/// The media event this uploaded media relates to.
2252
2253
related_to : OwnedTransactionId ,
@@ -2258,8 +2259,9 @@ pub enum RoomSendQueueUpdate {
2258
2259
/// thumbnail share the same index.
2259
2260
index : u64 ,
2260
2261
2261
- /// The transmission progress of this individual file.
2262
- progress : RelativeTransmissionProgress ,
2262
+ /// The combined upload progress across the file and, if existing, its
2263
+ /// thumbnail.
2264
+ progress : AbstractProgress ,
2263
2265
} ,
2264
2266
}
2265
2267
You can’t perform that action at this time.
0 commit comments