mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-20 16:35:17 +00:00
Get the list of private conversations between two users
This commit is contained in:
@ -130,5 +130,13 @@ pub fn update_settings(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
|
||||
/// Find a private conversation
|
||||
pub fn find_private(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
let other_user = r.post_user_id("otherUser")?;
|
||||
let allow_create = r.post_bool_opt("allowCreate", false);
|
||||
|
||||
// Query the database
|
||||
let list = conversations_helper::find_private(r.user_id()?, other_user)?;
|
||||
|
||||
println!("{:#?}", list);
|
||||
|
||||
r.success("implement it")
|
||||
}
|
Reference in New Issue
Block a user