mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-22 08:08:35 -04:00
test(sdk): Make room history visibility explicit
This isn't strictly necessary, but the lack of these events was causing spurious CI timeouts when tested with the logic that assumed a stricter history visibility than the spec required.
This commit is contained in:
@@ -11,7 +11,10 @@ use matrix_sdk_test::{
|
||||
};
|
||||
use ruma::{
|
||||
OwnedEventId, RoomVersionId, device_id, event_id,
|
||||
events::{AnySyncTimelineEvent, room::message::RoomMessageEventContent},
|
||||
events::{
|
||||
AnySyncTimelineEvent,
|
||||
room::{history_visibility::HistoryVisibility, message::RoomMessageEventContent},
|
||||
},
|
||||
mxc_uri, room_id,
|
||||
serde::Raw,
|
||||
user_id,
|
||||
@@ -94,7 +97,10 @@ async fn setup_shared_history(
|
||||
builder.add_joined_room(
|
||||
JoinedRoomBuilder::new(room_id)
|
||||
.add_state_event(event_factory.create(alice_user_id, RoomVersionId::V1))
|
||||
.add_state_event(event_factory.room_encryption()),
|
||||
.add_state_event(event_factory.room_encryption())
|
||||
.add_state_event(
|
||||
event_factory.room_history_visibility(HistoryVisibility::Shared),
|
||||
),
|
||||
);
|
||||
})
|
||||
.await;
|
||||
@@ -146,7 +152,10 @@ async fn setup_shared_history(
|
||||
builder.add_invited_room(
|
||||
InvitedRoomBuilder::new(room_id)
|
||||
.add_state_event(alice_member_event.cast())
|
||||
.add_state_event(bob_member_event),
|
||||
.add_state_event(bob_member_event)
|
||||
.add_state_event(
|
||||
event_factory.room_history_visibility(HistoryVisibility::Shared),
|
||||
),
|
||||
);
|
||||
})
|
||||
.await;
|
||||
|
||||
Reference in New Issue
Block a user