From 4ce3598274a33ac1b8b71f5f3853e77daf77fb39 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Wed, 24 Feb 2016 16:42:23 +0000 Subject: [PATCH] Make the initialSyncLimit configurable I keep wanting to change this to test things, and can never find the right place to change it. Make it configurable. --- src/components/structures/MatrixChat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index b4da948852..8a0f36e483 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -596,7 +596,7 @@ module.exports = React.createClass({ Presence.start(); cli.startClient({ pendingEventOrdering: "end", - initialSyncLimit: 20, + initialSyncLimit: this.props.config.sync_timeline_limit || 20, }); },