hotfix: profilepage remove friend function

This commit is contained in:
AdrienLSH 2024-04-23 15:54:16 +02:00
parent 18184f3a8b
commit 02bbaa6d9f

View File

@ -111,7 +111,7 @@ export default class extends AbstractView {
client.me.outgoingFriendRequests = client.me.outgoingFriendRequests.filter(profile => profile.id !== this.profile.id); client.me.outgoingFriendRequests = client.me.outgoingFriendRequests.filter(profile => profile.id !== this.profile.id);
} else if (response.status === 201) { } else if (response.status === 201) {
this.profile.isFriend = false; this.profile.isFriend = false;
client.me.friendList = client.me.friendList.client.me.incomingFriendRequests = filter(friend => friend.id !== this.profile.id); client.me.friendList = client.me.friendList.filter(friend => friend.id !== this.profile.id);
} }
} }