Поправил пуши для личных сообщений

This commit is contained in:
AidarKC
2026-10-21 11:47:27 +03:00
parent aa5addb5d9
commit 7a6ab3b35a
22 changed files with 723 additions and 678 deletions
+4 -1
View File
@@ -1,4 +1,5 @@
import { WsJsonClient } from './ws-client.js';
import { invalidateConnectionsGraphCache } from './connections-graph-cache.js';
import {
base64ToBytes,
bytesToBase64,
@@ -3368,7 +3369,9 @@ export class AuthService {
const kinds = CONNECTION_SUBTYPES[cleanKind];
if (!kinds) throw new Error(`Неподдерживаемый тип связи: ${kind}`);
const subType = enabled ? kinds.on : kinds.off;
return this.addBlockConnection({ login, toLogin, subType, storagePwd });
const result = await this.addBlockConnection({ login, toLogin, subType, storagePwd });
invalidateConnectionsGraphCache();
return result;
}
async addBlockUserParam({ login, param, value, storagePwd }) {