Merge pull request #1542 from thecodingmachine/HotFixLastRoomDefault

HotFix set last room for first connexion
This commit is contained in:
grégoire parant 2021-10-27 17:07:23 +02:00 committed by GitHub
commit 4d3bce0266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,6 +164,9 @@ class ConnectionManager {
//before set token of user we must load room and all information. For example the mandatory authentication could be require on current room
this._currentRoom = await Room.createRoom(new URL(roomPath));
//defined last room url this room path
localUserStore.setLastRoomUrl(this._currentRoom.key);
//todo: add here some kind of warning if authToken has expired.
if (!this.authToken && !this._currentRoom.authenticationMandatory) {
await this.anonymousLogin();