We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5d1ef2 commit 99eb7c3Copy full SHA for 99eb7c3
crates/matrix-sdk/src/send_queue/mod.rs
@@ -586,15 +586,16 @@ impl RoomSendQueue {
586
_ => false,
587
};
588
589
+ let default_index = 0; // Before MSC4274 only a single file (and thumbnail) could be sent per event.
590
let index = {
591
cfg_if::cfg_if! {
592
if #[cfg(feature = "unstable-msc4274")] {
593
match &queued_request.kind {
594
QueuedRequestKind::MediaUpload { accumulated, .. } => accumulated.len() as u64,
- _ => 0,
595
+ _ => default_index,
596
597
} else {
- 0 // Before MSC4274 there were only a single file (and thumbnail) could be sent per event.
598
+ default_index
599
}
600
601
0 commit comments