Исправление визуального прихода своих сообщений в другой диалог
This commit is contained in:
@@ -416,6 +416,12 @@ export function DialogProvider(props: DialogProviderProps) {
|
|||||||
*/
|
*/
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(toPublicKey != props.dialog) {
|
||||||
|
/**
|
||||||
|
* Игнорируем если это не сообщение для этого диалога
|
||||||
|
*/
|
||||||
|
return;
|
||||||
|
}
|
||||||
const chachaDecryptedKey = Buffer.from(await decodeWithPassword(privatePlain, aesChachaKey), "binary");
|
const chachaDecryptedKey = Buffer.from(await decodeWithPassword(privatePlain, aesChachaKey), "binary");
|
||||||
const key = chachaDecryptedKey.slice(0, 32);
|
const key = chachaDecryptedKey.slice(0, 32);
|
||||||
const nonce = chachaDecryptedKey.slice(32);
|
const nonce = chachaDecryptedKey.slice(32);
|
||||||
|
|||||||
Reference in New Issue
Block a user