Анимации, профиль, медиа
This commit is contained in:
@@ -95,9 +95,7 @@ export const useFriendStore = create<FriendState>((set, get) => ({
|
||||
const socket = getSocket();
|
||||
if (socket) socket.emit('friend_request', { friendId });
|
||||
|
||||
if (result.status === 'accepted') {
|
||||
await get().loadFriends();
|
||||
}
|
||||
await get().loadFriends();
|
||||
set((state) => ({
|
||||
searchResults: state.searchResults.filter(u => u.id !== friendId)
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user