server: Always use the option initial sync events for the initial sync.

This commit is contained in:
Damir Jelić 2020-06-22 19:41:06 +02:00
parent 8b5ae9d80d
commit cd90256e69

View file

@ -850,6 +850,7 @@ class MatrixServer(object):
).format(prefix=W.prefix("network"), script_name=SCRIPT_NAME)
W.prnt(self.server_buffer, msg)
timeout = 0 if self.transport_type == TransportType.HTTP else 30000
limit = (G.CONFIG.network.max_initial_sync_events if self.first_sync else 500)
sync_filter = {
"room": {
"timeline": {"limit": limit},