1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Can delete group logo

This commit is contained in:
2020-05-02 09:15:02 +02:00
parent 4cb672cb16
commit 9646cb7a70
2 changed files with 29 additions and 1 deletions

View File

@ -237,6 +237,12 @@ class GroupsHelper {
.addBytesFile("logo", BytesFile("logo.png", bytes))
.execWithFilesAndThrow();
/// Delete group logo
static Future<void> deleteLogo(int groupID) async =>
await APIRequest(uri: "groups/delete_logo", needLogin: true)
.addInt("id", groupID)
.execWithThrow();
/// Turn an API entry into a group object
Group _getGroupFromAPI(Map<String, dynamic> map) {
return Group(