From 8cbb0f2c6b3e5ef70fa0a5827bf01014c9c7f797 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sat, 23 May 2026 21:40:12 -0400 Subject: [PATCH] fix: bump matrixRTC maxListeners to suppress MaxListenersExceededWarning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Each RoomNavItem subscribes to session_started/session_ended on the MatrixRTCSessionManager, one per visible room. The default limit of 10 fires a spurious warning when 11+ rooms are in the sidebar. Listeners are properly cleaned up — this is not a real leak. Co-Authored-By: Claude Sonnet 4.6 --- src/client/initMatrix.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/initMatrix.ts b/src/client/initMatrix.ts index 5af0925a3..f14d9d8e2 100644 --- a/src/client/initMatrix.ts +++ b/src/client/initMatrix.ts @@ -48,6 +48,8 @@ export const initClient = async (session: Session): Promise => { await mx.initRustCrypto(); mx.setMaxListeners(50); + // Each RoomNavItem subscribes to session_started/session_ended; one listener per visible room. + mx.matrixRTC.setMaxListeners(100); return mx; };