Skip to content

Commit 10585e7

Browse files
committed
fixup! feat(timeline): communicate media upload progress through EventSendState::NotSentYet
1 parent a01918f commit 10585e7

File tree

2 files changed

+7
-2
lines changed
  • crates/matrix-sdk-ui

2 files changed

+7
-2
lines changed

crates/matrix-sdk-ui/src/timeline/event_item/local.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
use std::sync::Arc;
1616

1717
use as_variant::as_variant;
18-
use matrix_sdk::{AbstractProgress, Error, send_queue::SendHandle};
18+
use matrix_sdk::{
19+
Error,
20+
send_queue::{AbstractProgress, SendHandle},
21+
};
1922
use ruma::{EventId, OwnedEventId, OwnedTransactionId};
2023

2124
use super::TimelineEventItemId;

crates/matrix-sdk-ui/tests/integration/timeline/media.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ use eyeball_im::VectorDiff;
2020
use futures_util::StreamExt;
2121
#[cfg(feature = "unstable-msc4274")]
2222
use matrix_sdk::attachment::{AttachmentInfo, BaseFileInfo};
23-
use matrix_sdk::{AbstractProgress, assert_let_timeout, test_utils::mocks::MatrixMockServer};
23+
use matrix_sdk::{
24+
assert_let_timeout, send_queue::AbstractProgress, test_utils::mocks::MatrixMockServer,
25+
};
2426
use matrix_sdk_test::{ALICE, JoinedRoomBuilder, async_test, event_factory::EventFactory};
2527
use matrix_sdk_ui::timeline::{
2628
AttachmentConfig, AttachmentSource, EventSendProgress, EventSendState, RoomExt, TimelineFocus,

0 commit comments

Comments
 (0)