Skip to content

Commit 56f9b2d

Browse files
committed
chore(base): Rename rooms to room.
This patch renames the `rooms` module into `room`. It contains a single kind of `Room`.
1 parent b18680b commit 56f9b2d

File tree

20 files changed

+12
-12
lines changed

20 files changed

+12
-12
lines changed

crates/matrix-sdk-base/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ use crate::{
5656
error::{Error, Result},
5757
event_cache::store::EventCacheStoreLock,
5858
response_processors::{self as processors, Context},
59-
rooms::{
59+
room::{
6060
Room, RoomInfoNotableUpdate, RoomInfoNotableUpdateReasons, RoomMembersUpdate, RoomState,
6161
},
6262
store::{

crates/matrix-sdk-base/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub mod latest_event;
3434
pub mod media;
3535
pub mod notification_settings;
3636
mod response_processors;
37-
mod rooms;
37+
mod room;
3838

3939
pub mod read_receipts;
4040
pub mod sliding_sync;
@@ -54,7 +54,7 @@ pub use http;
5454
#[cfg(feature = "e2e-encryption")]
5555
pub use matrix_sdk_crypto as crypto;
5656
pub use once_cell;
57-
pub use rooms::{
57+
pub use room::{
5858
apply_redaction, EncryptionState, Room, RoomCreateWithCreatorEventContent, RoomDisplayName,
5959
RoomHero, RoomInfo, RoomInfoNotableUpdate, RoomInfoNotableUpdateReasons, RoomMember,
6060
RoomMembersUpdate, RoomMemberships, RoomState, RoomStateFilter,

crates/matrix-sdk-base/src/response_processors/account_data/room.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use tracing::{instrument, warn};
2121

2222
use super::super::{Context, RoomInfoNotableUpdates};
2323
use crate::{
24-
rooms::AccountDataSource, store::BaseStateStore, RoomInfo, RoomInfoNotableUpdateReasons,
24+
room::AccountDataSource, store::BaseStateStore, RoomInfo, RoomInfoNotableUpdateReasons,
2525
StateChanges,
2626
};
2727

crates/matrix-sdk-base/src/response_processors/latest_event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ mod tests {
144144
use ruma::{event_id, events::room::member::MembershipState, room_id, user_id};
145145

146146
use super::{decrypt_from_rooms, Context, E2EE};
147-
use crate::{rooms::RoomInfoNotableUpdateReasons, test_utils::logged_in_base_client};
147+
use crate::{room::RoomInfoNotableUpdateReasons, test_utils::logged_in_base_client};
148148

149149
#[async_test]
150150
async fn test_when_there_are_no_latest_encrypted_events_decrypting_them_does_nothing() {

crates/matrix-sdk-base/src/response_processors/room/display_name.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
use super::super::Context;
1616
use crate::{
17-
rooms::UpdatedRoomDisplayName, store::BaseStateStore, sync::RoomUpdates,
17+
room::UpdatedRoomDisplayName, store::BaseStateStore, sync::RoomUpdates,
1818
RoomInfoNotableUpdateReasons,
1919
};
2020

File renamed without changes.

0 commit comments

Comments
 (0)