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

Can update following status of a group

This commit is contained in:
2020-04-15 18:39:07 +02:00
parent 566f205dc9
commit add1712b7d
5 changed files with 79 additions and 6 deletions

View File

@ -148,6 +148,14 @@ class GroupsHelper {
"accept": accept ? "true" : "false",
});
/// Update group following status
Future<bool> setFollowing(int groupID, bool follow) async =>
(await (APIRequest(uri: "groups/set_following", needLogin: true)
..addInt("groupID", groupID)
..addBool("follow", follow))
.exec())
.isOK;
/// Get advanced information about the user
Future<GetAdvancedInfoResult> getAdvancedInfo(int groupID) async {
// Get advanced information about the user