1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-21 00:45:18 +00:00

Can get information about a single conversation

This commit is contained in:
2020-06-12 09:20:32 +02:00
parent 619fc171e1
commit b30dc049bf
2 changed files with 21 additions and 1 deletions

View File

@ -56,6 +56,7 @@ pub fn get_list(r: &mut HttpRequestHandler) -> RequestResult {
/// Get information about a single conversation
pub fn get_single(r: &mut HttpRequestHandler) -> RequestResult {
let conversation_id = r.post_conv_id("conversationID")?;
let conv = conversations_helper::get_single(conversation_id, r.user_id()?)?;
r.success("do it")
r.set_response(ConversationAPI::new(&conv))
}