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

Can remove a friend from the list of friends

This commit is contained in:
2019-05-01 19:29:46 +02:00
parent a7b2bf410e
commit 7c3390f8af
4 changed files with 90 additions and 6 deletions

View File

@ -51,4 +51,15 @@ class FriendsHelper {
return response.code == 200;
}
/// Remove a friend from the list
Future<bool> removeFriend(int friendID) async {
final response = await APIRequest(
uri: "friends/remove",
needLogin: true,
args: {"friendID" : friendID.toString()}
).exec();
return response.code == 200;
}
}