Fix dict changing size problem in retry_decrypt_..

Also add a copy() method to models, and make them able
to not have a sync_id (in which case they won't send pyotherside
events).
This commit is contained in:
miruka
2020-03-15 16:18:32 -04:00
parent d00db2256d
commit adbe2d88ee
4 changed files with 28 additions and 16 deletions

View File

@@ -981,7 +981,7 @@ class MatrixClient(nio.AsyncClient):
_, room_id, _ = sync_id
for ev in model.values():
for ev in model.copy().values():
room = self.all_rooms[room_id]
if isinstance(ev.source, nio.MegolmEvent):