Merge pull request #1673 from thecodingmachine/fix_redirect

Fixing bug in redirect handling of rooms
This commit is contained in:
David Négrier 2021-12-23 16:02:55 +01:00 committed by GitHub
commit 3e8cec312b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,9 +104,9 @@ export class Room {
const data = result.data; const data = result.data;
if (isRoomRedirect(data.redirectUrl)) { if (isRoomRedirect(data)) {
return { return {
redirectUrl: data.redirectUrl as string, redirectUrl: data.redirectUrl,
}; };
} else if (isMapDetailsData(data)) { } else if (isMapDetailsData(data)) {
console.log("Map ", this.id, " resolves to URL ", data.mapUrl); console.log("Map ", this.id, " resolves to URL ", data.mapUrl);