relation not being updated after calling update

I can’t seem to get my backendless database to update after this code is executed
updateFriendList(user1,user2);
Backendless.UserService.update(user1, new AsyncCallback<BackendlessUser>() {
@Override
public void handleResponse(BackendlessUser response) {
Toast.makeText(getActivity(), “Friend Deleted!”, Toast.LENGTH_LONG).show();
}
@Override
public void handleFault(BackendlessFault fault) {
}
});

Here is the updateFriendList method

private void updateFriendList(BackendlessUser user1, BackendlessUser user2) {
Object[] currentFriendObjects = (Object[]) user1.getProperty(“friends”);
ArrayList<BackendlessUser> friendsList = new ArrayList<>();
if(currentFriendObjects.length>0){
BackendlessUser[] currentFriends = (BackendlessUser[]) currentFriendObjects;
friendsList.addAll(Arrays.asList(currentFriends));
friendsList.remove(user2);
}
user1.setProperty(“friends”, friendsList);
}
Everything works successfuly and i am reaching my friend deleted toast yet the relation is not being deleted in BackendlessAutoload is on btw.

Have you verified that user2 was in the “friendsList” collection?

Have you verified that after the following code, the object was indeed removed from the collection:

friendsList.remove(user2);

Yes I did… I created two log statements one before removing the user and one after the removing the user and I can physically see “user2” being removed from the list

Sameer, we tried it in a sample and it works properly, thus we cannot reproduce the problem. I suspect the problem is somewhere in your code. In cases like this we offer the following: we charge $100 for single support incident and review your code. If the problem ends up being in Backendless API (meaning inside of our SDK code) or on the server-side, the fee is refunded back to you. Otherwise, we point out the problem in your code. Please let me know if you’d like to proceed with this route.