Flagging Room.isPublic property as deprecated

This commit is contained in:
David Négrier 2022-01-05 16:30:41 +01:00
parent 6766ee86da
commit f82012d315

View file

@ -18,7 +18,10 @@ export interface RoomRedirect {
export class Room { export class Room {
public readonly id: string; public readonly id: string;
public readonly isPublic: boolean; /**
* @deprecated
*/
private readonly isPublic: boolean;
private _authenticationMandatory: boolean = DISABLE_ANONYMOUS; private _authenticationMandatory: boolean = DISABLE_ANONYMOUS;
private _iframeAuthentication?: string = OPID_LOGIN_SCREEN_PROVIDER; private _iframeAuthentication?: string = OPID_LOGIN_SCREEN_PROVIDER;
private _mapUrl: string | undefined; private _mapUrl: string | undefined;
@ -149,6 +152,8 @@ export class Room {
* Instance name is: * Instance name is:
* - In a public URL: the second part of the URL ( _/[instance]/map.json) * - In a public URL: the second part of the URL ( _/[instance]/map.json)
* - In a private URL: [organizationId/worldId] * - In a private URL: [organizationId/worldId]
*
* @deprecated
*/ */
public getInstance(): string { public getInstance(): string {
if (this.instance !== undefined) { if (this.instance !== undefined) {