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 @@ -2240,7 +2240,8 @@ pub enum RoomSendQueueUpdate {
2240
2240
event_id : OwnedEventId ,
2241
2241
} ,
2242
2242
2243
- /// A media upload has made progress.
2243
+ /// A media upload (consisting of a file and possibly a thumbnail) has made
2244
+ /// progress.
2244
2245
MediaUpload {
2245
2246
/// The media event this uploaded media relates to.
2246
2247
related_to : OwnedTransactionId ,
@@ -2252,8 +2253,9 @@ pub enum RoomSendQueueUpdate {
2252
2253
/// thumbnail share the same index.
2253
2254
index : u64 ,
2254
2255
2255
- /// The transmission progress of this individual file.
2256
- progress : RelativeTransmissionProgress ,
2256
+ /// The combined upload progress across the file and, if existing, its
2257
+ /// thumbnail.
2258
+ progress : AbstractProgress ,
2257
2259
} ,
2258
2260
}
2259
2261
You can’t perform that action at this time.
0 commit comments