mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Can delete a group conversation
This commit is contained in:
@ -361,6 +361,14 @@ class GroupsHelper {
|
||||
.key)
|
||||
.execWithThrow();
|
||||
|
||||
/// Delete a group's conversation
|
||||
///
|
||||
/// Throws in case of failure
|
||||
static Future<void> deleteConversation(int convID) async =>
|
||||
await APIRequest.withLogin("groups/delete_conversation")
|
||||
.addInt("conv_id", convID)
|
||||
.execWithThrow();
|
||||
|
||||
/// Turn an API entry into a group object
|
||||
Group _getGroupFromAPI(Map<String, dynamic> map) {
|
||||
return Group(
|
||||
|
Reference in New Issue
Block a user