mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Can add members to conversation
This commit is contained in:
@ -49,6 +49,15 @@ class ConversationsHelper {
|
||||
return response.getObject()["conversationID"];
|
||||
}
|
||||
|
||||
/// Add a member to a conversation.
|
||||
///
|
||||
/// Throws in case of failure
|
||||
static Future<void> addMember(int convID, int userID) async =>
|
||||
await APIRequest.withLogin("conversations/addMember")
|
||||
.addInt("convID", convID)
|
||||
.addInt("userID", userID)
|
||||
.execWithThrow();
|
||||
|
||||
/// Remove a member from a conversation.
|
||||
///
|
||||
/// Throws in case of failure
|
||||
|
Reference in New Issue
Block a user