Browse Source

Fix references again

master
Eduard Kuzmenko 3 years ago
parent
commit
8fe9f3de48
  1. 2
      src/lib/mtproto/referenceDatabase.ts

2
src/lib/mtproto/referenceDatabase.ts

@ -61,9 +61,9 @@ class ReferenceDatabase {
if(!contexts) { if(!contexts) {
contexts = new Set(); contexts = new Set();
this.contexts.set(reference, contexts); this.contexts.set(reference, contexts);
this.links[bytesToHex(reference)] = reference;
} }
this.links[bytesToHex(reference)] = reference;
for(const _context of contexts) { for(const _context of contexts) {
if(deepEqual(_context, context)) { if(deepEqual(_context, context)) {
return; return;

Loading…
Cancel
Save