Add close-friend flow on network tab with server API

This commit is contained in:
ai5590
2026-04-05 12:12:55 +03:00
parent 91ed444c90
commit 09566fdfde
7 changed files with 218 additions and 3 deletions
+7
View File
@@ -264,6 +264,13 @@ export class AuthService {
return response.payload || {};
}
async addCloseFriend(toLogin) {
const response = await this.ws.request('AddCloseFriend', { toLogin });
if (response.status !== 200) throw opError('AddCloseFriend', response);
return response.payload || {};
}
async getUserConnectionsGraph(login) {
const response = await this.ws.request('GetUserConnectionsGraph', { login });
if (response.status !== 200) throw opError('GetUserConnectionsGraph', response);