No longer persist guest room IDs. Replace with transient peeked room ID.
This commit is contained in:
parent
afbb451d4a
commit
29587ec347
2 changed files with 13 additions and 30 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue