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

Can change group virtual directory

This commit is contained in:
2020-05-01 20:10:25 +02:00
parent d889321b38
commit 519c68b092
4 changed files with 38 additions and 2 deletions

View File

@ -193,6 +193,16 @@ class GroupsHelper {
return groupInfo.info;
}
/// Check the availability of a virtual directory
///
/// Throws in case of error
static Future<void> checkVirtualDirectoryAvailability(
int groupID, String dir) async =>
await APIRequest(uri: "groups/checkVirtualDirectory", needLogin: true)
.addInt("groupID", groupID)
.addString("directory", dir)
.execWithThrow();
/// Update (set) new group settings
///
/// Throws in case of error