index : matrix-js-sdk

My fork of matrix-js-sdk

diff options
context:
space:
mode:
authorJ. Ryan Stinnett <[email protected]>2020-06-25 13:54:11 +0100
committerGitHub <[email protected]>2020-06-25 13:54:11 +0100
commit355da0f9a9c37fa348bc592e28ab4ecc6fbf824a (patch)
tree833992dacec0f6f08293c00cc6766b10c5eb81c6
parent69dc518c2ca6d559352a346f19ea73a3b3dd791c (diff)
parent10bdd6376263836acc1359513c5f216154d41a08 (diff)
downloadmatrix-js-sdk-355da0f9a9c37fa348bc592e28ab4ecc6fbf824a.tar.gz
Merge pull request #1411 from matrix-org/jryans/more-room-listeners
Increase max event listeners for rooms
-rw-r--r--src/models/room.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/models/room.js b/src/models/room.js
index 850542c9..4a656712 100644
--- a/src/models/room.js
+++ b/src/models/room.js
@@ -122,6 +122,10 @@ export function Room(roomId, client, myUserId, opts) {
opts = opts || {};
opts.pendingEventOrdering = opts.pendingEventOrdering || "chronological";
+ // In some cases, we add listeners for every displayed Matrix event, so it's
+ // common to have quite a few more than the default limit.
+ this.setMaxListeners(100);
+
this.reEmitter = new ReEmitter(this);
if (["chronological", "detached"].indexOf(opts.pendingEventOrdering) === -1) {