Исправление визуального прихода своих сообщений в другой диалог

This commit is contained in:
RoyceDa
2026-02-17 15:36:04 +02:00
parent 9c72523e0c
commit 6461ab60a1

View File

@@ -416,6 +416,12 @@ export function DialogProvider(props: DialogProviderProps) {
*/
return;
}
if(toPublicKey != props.dialog) {
/**
* Игнорируем если это не сообщение для этого диалога
*/
return;
}
const chachaDecryptedKey = Buffer.from(await decodeWithPassword(privatePlain, aesChachaKey), "binary");
const key = chachaDecryptedKey.slice(0, 32);
const nonce = chachaDecryptedKey.slice(32);