Stop re-saving input peers on disconnect

This was overwriting actual information on the cache.
This commit is contained in:
Lonami Exo
2025-04-23 19:21:36 +02:00
parent b2809e0b57
commit 04922fee3c
2 changed files with 2 additions and 9 deletions

View File

@@ -49,9 +49,6 @@ class EntityCache:
if getattr(c, 'access_hash', None) and not getattr(c, 'min', None)
)
def get_all_entities(self):
return [Entity(ty, id, hash) for id, (hash, ty) in self.hash_map.items()]
def put(self, entity):
self.hash_map[entity.id] = (entity.hash, entity.ty)