mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-03 03:21:49 +02:00
Merge pull request #312 from matrix-org/rav/eventlistnener_warning
Fix eventListener warning
This commit is contained in:
commit
624e34c48a
@ -50,6 +50,11 @@ function createClientForPeg(hs_url, is_url, user_id, access_token, guestAccess)
|
||||
}
|
||||
|
||||
matrixClient = Matrix.createClient(opts);
|
||||
|
||||
// we're going to add eventlisteners for each matrix event tile, so the
|
||||
// potential number of event listeners is quite high.
|
||||
matrixClient.setMaxListeners(500);
|
||||
|
||||
if (guestAccess) {
|
||||
console.log("Guest: %s", guestAccess.isGuest());
|
||||
matrixClient.setGuest(guestAccess.isGuest());
|
||||
|
Loading…
x
Reference in New Issue
Block a user