1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-07-03 15:13:29 +00:00

Can remove conversation logo

This commit is contained in:
2021-03-13 11:42:58 +01:00
parent 642f5e11fc
commit 99ae726c0a
2 changed files with 43 additions and 6 deletions

View File

@ -109,6 +109,14 @@ class ConversationsHelper {
.addBytesFile("file", file)
.execWithFilesAndThrow();
/// Remove conversation logo
///
/// Throws in case of failure
static Future<void> removeLogo(int convID) async =>
await APIRequest.withLogin("conversations/delete_image")
.addInt("convID", convID)
.execWithThrow();
/// Delete a conversation specified by its [id]
Future<void> deleteConversation(int id) async =>
await APIRequest.withLogin("conversations/delete")