1
0
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:
2020-06-18 09:26:25 +02:00
parent 2f571787a3
commit ab10bc2d36
3 changed files with 39 additions and 0 deletions

View File

@ -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")
}