Add create room command and room management enhancements in yourchat2
Implemented the `create_room` command to allow users to create new chat rooms with customizable settings such as privacy, age restrictions, and ownership. Enhanced room management by introducing functions to mark rooms as occupied or possibly empty, and added cleanup logic for stale temporary rooms. Updated the `RoomMeta` structure to include new fields for room creation timestamps and temporary status, ensuring better room lifecycle management.
This commit is contained in:
@@ -95,4 +95,7 @@ pub(crate) struct RoomMeta {
|
||||
pub(crate) owner_id: Option<i32>,
|
||||
pub(crate) room_type_id: Option<i32>,
|
||||
pub(crate) friends_of_owner_only: bool,
|
||||
pub(crate) is_temporary: bool,
|
||||
pub(crate) created_at_unix: Option<i64>,
|
||||
pub(crate) empty_since_unix: Option<i64>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user