1
0
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:
2021-04-06 17:46:05 +02:00
parent 5773981750
commit 22f27a24de
2 changed files with 28 additions and 0 deletions

View File

@ -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(