Created friendship request buttons

This commit is contained in:
Pierre
2017-12-20 19:18:18 +01:00
parent 7506222d15
commit fb88265727
5 changed files with 131 additions and 1 deletions

View File

@ -90,6 +90,25 @@ ComunicWeb.components.friends.list = {
return true;
},
/**
* Get the current status of a friendship relation
*
* @param {Integer} friendID The ID of the target friend
* @param {Function} callback What to do once we get the response
*/
getStatus: function(friendID, callback){
//Prepare the API request
var apiURI = "friends/getStatus";
var params = {
"friendID": friendID
};
//Process request
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
},
/**
* Empty friends cache list
*