1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

clear out of band members in store when leaving room

This commit is contained in:
Bruno Windels
2018-08-31 14:41:25 +02:00
parent f8ea1702f8
commit 7258fe4e5c
3 changed files with 28 additions and 0 deletions

View File

@@ -1106,6 +1106,7 @@ SyncApi.prototype._processSyncResponse = async function(
leaveRooms.forEach(function(leaveObj) {
const room = leaveObj.room;
room.setSyncedMembership("leave");
room.onLeft();
const stateEvents =
self._mapSyncEventsFormat(leaveObj.state, room);