From d289a44624c40637c479c5e96e5fd385740766a6 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 22 Apr 2021 17:23:29 +0200 Subject: [PATCH] also sync leave now that we can handle it --- src/matrix/Sync.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/matrix/Sync.js b/src/matrix/Sync.js index 9fb57948..5f8d4e06 100644 --- a/src/matrix/Sync.js +++ b/src/matrix/Sync.js @@ -331,8 +331,7 @@ export class Sync { _parseRoomsResponse(roomsSection, inviteStates, isInitialSync) { const roomStates = []; if (roomsSection) { - // don't do "leave" for now - const allMemberships = ["join"]; + const allMemberships = ["join", "leave"]; for(const membership of allMemberships) { const membershipSection = roomsSection[membership]; if (membershipSection) {