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:
@ -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")
|
||||
|
Reference in New Issue
Block a user