Load only 25 past events at once until lag solved

This commit is contained in:
miruka 2019-07-05 03:18:24 -04:00
parent 57577ba8b8
commit c70c7d555d

View File

@ -154,7 +154,7 @@ class MatrixClient(nio.AsyncClient):
log.error("Failed to send message: %s", response)
async def load_past_events(self, room_id: str, limit: int = 100) -> bool:
async def load_past_events(self, room_id: str, limit: int = 25) -> bool:
if room_id in self.backend.fully_loaded_rooms:
return False