Skip to content

Commit

Permalink
fixup! refactor(base): Remove impl From for SyncTimelineEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Oct 17, 2024
1 parent 3c1ea11 commit db9d8b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/matrix-sdk-ui/src/timeline/tests/shields.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use assert_matches::assert_matches;
use eyeball_im::VectorDiff;
use matrix_sdk_base::deserialized_responses::{ShieldState, ShieldStateCode};
use matrix_sdk_base::deserialized_responses::{ShieldState, ShieldStateCode, SyncTimelineEvent};
use matrix_sdk_test::{async_test, sync_timeline_event, ALICE};
use ruma::{
event_id,
Expand Down Expand Up @@ -97,7 +97,7 @@ async fn test_local_sent_in_clear_shield() {

// When the remote echo comes in.
timeline
.handle_live_event(sync_timeline_event!({
.handle_live_event(SyncTimelineEvent::new(sync_timeline_event!({
"content": {
"body": "Local message",
"msgtype": "m.text",
Expand All @@ -106,7 +106,7 @@ async fn test_local_sent_in_clear_shield() {
"event_id": event_id,
"origin_server_ts": timestamp,
"type": "m.room.message",
}))
})))
.await;
let item = assert_next_matches!(stream, VectorDiff::Set { index: 1, value } => value);
let event_item = item.as_event().unwrap();
Expand Down

0 comments on commit db9d8b1

Please sign in to comment.