mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-21 08:55:16 +00:00
Can remove a member from a conversation
This commit is contained in:
@ -293,5 +293,9 @@ pub fn list_unread(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
|
||||
/// Delete a conversation
|
||||
pub fn delete_conversation(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
r.success("Delete a conversation")
|
||||
let conv_id = r.post_conv_id("conversationID")?;
|
||||
|
||||
conversations_helper::remove_user_from_conversation(r.user_id()?, conv_id)?;
|
||||
|
||||
r.success("The conversation has been deleted")
|
||||
}
|
Reference in New Issue
Block a user