No longer persist guest room IDs. Replace with transient peeked room ID.

This commit is contained in:
Kegan Dougal 2016-01-06 17:33:00 +00:00
parent afbb451d4a
commit 29587ec347
2 changed files with 13 additions and 30 deletions

View file

@ -51,7 +51,11 @@ function createClient(hs_url, is_url, user_id, access_token, guestAccess) {
if (guestAccess) {
console.log("Guest: %s", guestAccess.isGuest());
matrixClient.setGuest(guestAccess.isGuest());
matrixClient.setGuestRooms(guestAccess.getRooms());
var peekedRoomId = guestAccess.getPeekedRoom();
if (peekedRoomId) {
console.log("Peeking in room %s", peekedRoomId);
matrixClient.peekInRoom(peekedRoomId);
}
}
}