Синхронизация чтения личных сообщений

This commit is contained in:
RoyceDa
2026-02-01 01:25:00 +02:00
parent 3769b52132
commit 3d408b7864

View File

@@ -446,7 +446,7 @@ export function useDialogFiber() {
const toPublicKey = packet.getToPublicKey(); const toPublicKey = packet.getToPublicKey();
await runQuery(`UPDATE messages SET read = 1 WHERE from_public_key = ? AND to_public_key = ? AND account = ?`, await runQuery(`UPDATE messages SET read = 1 WHERE from_public_key = ? AND to_public_key = ? AND account = ?`,
[fromPublicKey, toPublicKey, publicKey]); [toPublicKey, fromPublicKey, publicKey]);
updateDialog(toPublicKey); updateDialog(toPublicKey);
log("Read sync packet from other device"); log("Read sync packet from other device");
addOrUpdateDialogCache(fromPublicKey, getDialogCache(fromPublicKey).map((message) => { addOrUpdateDialogCache(fromPublicKey, getDialogCache(fromPublicKey).map((message) => {