Properly load and save channel state

This commit is contained in:
Lonami Exo
2022-01-24 11:05:58 +01:00
parent f7ccf8d843
commit f775484172
2 changed files with 11 additions and 3 deletions

View File

@@ -98,3 +98,6 @@ class EntityCache:
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.access_hash, entity.ty)