From 8fe9f3de48837ca7dd601baeb3ab8428a5396fce Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Sun, 4 Jul 2021 06:18:38 +0300 Subject: [PATCH] Fix references again --- src/lib/mtproto/referenceDatabase.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/mtproto/referenceDatabase.ts b/src/lib/mtproto/referenceDatabase.ts index a3cf4fb1..d6a547fb 100644 --- a/src/lib/mtproto/referenceDatabase.ts +++ b/src/lib/mtproto/referenceDatabase.ts @@ -61,9 +61,9 @@ class ReferenceDatabase { if(!contexts) { contexts = new Set(); this.contexts.set(reference, contexts); - this.links[bytesToHex(reference)] = reference; } - + + this.links[bytesToHex(reference)] = reference; for(const _context of contexts) { if(deepEqual(_context, context)) { return;