From 678ec72b7248457d41d84d29bbcaa3da50ca20d7 Mon Sep 17 00:00:00 2001 From: spencrmartin Date: Mon, 17 Nov 2025 10:25:14 -0500 Subject: [PATCH] Fix Matrix sync ERROR - remove invalid filter configuration ## Bug Fix - Removed invalid filter configuration that was causing Matrix sync to fail - Matrix client was throwing 'filter.getDefinition is not a function' error - Kept optimized sync settings (50 message limit, 30s polling) without filter ## Technical Details - Matrix-js-sdk expects specific filter object format - Invalid filter was preventing successful sync initialization - Now relies on increased sync limits for performance instead of custom filters ## Result - Matrix sync should now work properly without ERROR state - Real-time notifications should be faster due to increased limits - Eliminates the sync failure that was blocking message delivery Fixes Matrix sync ERROR and improves notification performance --- ui/desktop/src/services/MatrixService.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ui/desktop/src/services/MatrixService.ts b/ui/desktop/src/services/MatrixService.ts index 0ec8ba5b22..b4c121f06f 100644 --- a/ui/desktop/src/services/MatrixService.ts +++ b/ui/desktop/src/services/MatrixService.ts @@ -363,13 +363,8 @@ export class MatrixService extends EventEmitter { await this.client.startClient({ initialSyncLimit: 50, // Increased from 10 to get more recent messages pollTimeout: 30000, // 30 second long polling for faster notifications - filter: { - room: { - timeline: { - limit: 20, // Get more recent messages per room - }, - }, - }, + // Remove filter for now - it was causing sync errors + // We'll rely on the increased sync limits for better performance }); this.syncState = 'SYNCING';