You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Fix eventListener warning
Bump up maxEventListeners on the MatrixClient to shut up the warning about leaks.
This commit is contained in:
@@ -50,6 +50,11 @@ function createClientForPeg(hs_url, is_url, user_id, access_token, guestAccess)
|
|||||||
}
|
}
|
||||||
|
|
||||||
matrixClient = Matrix.createClient(opts);
|
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) {
|
if (guestAccess) {
|
||||||
console.log("Guest: %s", guestAccess.isGuest());
|
console.log("Guest: %s", guestAccess.isGuest());
|
||||||
matrixClient.setGuest(guestAccess.isGuest());
|
matrixClient.setGuest(guestAccess.isGuest());
|
||||||
|
|||||||
Reference in New Issue
Block a user