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) {
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) {