Skip to content

Commit 862d604

Browse files
author
dragonfly1033
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! test(sdk): Add integration test for search
1 parent 65208a3 commit 862d604

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

crates/matrix-sdk/src/event_cache/room/mod.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ use tokio::sync::{
4343
broadcast::{Receiver, Sender},
4444
mpsc, Notify, RwLock,
4545
};
46-
use tracing::{debug, instrument, trace, warn};
46+
#[cfg(feature = "experimental-search")]
47+
use tracing::debug;
48+
use tracing::{instrument, trace, warn};
4749

4850
use super::{
4951
AutoShrinkChannelPayload, EventsOrigin, Result, RoomEventCacheGenericUpdate,
@@ -647,11 +649,11 @@ mod private {
647649
};
648650
use matrix_sdk_common::executor::spawn;
649651
#[cfg(feature = "experimental-search")]
650-
use ruma::events::{AnyMessageLikeEvent, AnySyncMessageLikeEvent};
652+
use ruma::events::AnyMessageLikeEvent;
651653
use ruma::{
652654
events::{
653-
relation::RelationType, room::redaction::SyncRoomRedactionEvent, AnySyncTimelineEvent,
654-
MessageLikeEventType,
655+
relation::RelationType, room::redaction::SyncRoomRedactionEvent,
656+
AnySyncMessageLikeEvent, AnySyncTimelineEvent, MessageLikeEventType,
655657
},
656658
room_version_rules::RoomVersionRules,
657659
serde::Raw,

crates/matrix-sdk/src/room/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ use mime::Mime;
6363
use reply::Reply;
6464
#[cfg(feature = "unstable-msc4274")]
6565
use ruma::events::room::message::GalleryItemType;
66-
#[cfg(feature = "experimental-search")]
66+
#[cfg(any(feature = "experimental-search", feature = "e2e-encryption"))]
6767
use ruma::events::AnySyncMessageLikeEvent;
6868
#[cfg(feature = "e2e-encryption")]
6969
use ruma::events::{

0 commit comments

Comments
 (0)