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