Синхронизация чтения личных сообщений
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user