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:
@ -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))
|
||||
}
|
Reference in New Issue
Block a user