mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 14:36:29 +03:00
working example
This commit is contained in:
@@ -1903,6 +1903,11 @@ pub fn forward_msgs(context: &Context, msg_ids: &[MsgId], chat_id: u32) -> Resul
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn get_info_json(context: &Context, chat_id: u32) -> Result<String, Error> {
|
||||
let s = format!("{{\n {:?}: {:?}\n}}", "chat_id", chat_id);
|
||||
Ok(s)
|
||||
}
|
||||
|
||||
pub fn get_chat_contact_cnt(context: &Context, chat_id: u32) -> usize {
|
||||
context
|
||||
.sql
|
||||
|
||||
Reference in New Issue
Block a user