also sync leave now that we can handle it

This commit is contained in:
Bruno Windels 2021-04-22 17:23:29 +02:00
parent 2e9ddf9c2c
commit d289a44624

View file

@ -331,8 +331,7 @@ export class Sync {
_parseRoomsResponse(roomsSection, inviteStates, isInitialSync) { _parseRoomsResponse(roomsSection, inviteStates, isInitialSync) {
const roomStates = []; const roomStates = [];
if (roomsSection) { if (roomsSection) {
// don't do "leave" for now const allMemberships = ["join", "leave"];
const allMemberships = ["join"];
for(const membership of allMemberships) { for(const membership of allMemberships) {
const membershipSection = roomsSection[membership]; const membershipSection = roomsSection[membership];
if (membershipSection) { if (membershipSection) {