Added session messages to chatroom
This commit is contained in:
parent
63b6a03ab8
commit
f6ea7041a7
@ -10,6 +10,7 @@ pub struct ChatRoom {
|
||||
pub time_created: i64,
|
||||
#[serde(rename = "lastUpdated")]
|
||||
pub last_updated: i64,
|
||||
pub session_messages: u64,
|
||||
}
|
||||
|
||||
impl From<crate::domain::chat_room::ChatRoom> for ChatRoom {
|
||||
@ -20,6 +21,7 @@ impl From<crate::domain::chat_room::ChatRoom> for ChatRoom {
|
||||
owner_id: value.owner_id,
|
||||
time_created: value.time_created.timestamp_millis(),
|
||||
last_updated: value.last_updated.timestamp_millis(),
|
||||
session_messages: 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user