Add optional flag to UserProfileComposer

This commit is contained in:
Bill 2022-08-03 09:43:07 -04:00
parent 4aad057e02
commit a9878403d8
2 changed files with 4 additions and 4 deletions

View File

@ -4,9 +4,9 @@ export class UserProfileComposer implements IMessageComposer<ConstructorParamete
{ {
private _data: ConstructorParameters<typeof UserProfileComposer>; private _data: ConstructorParameters<typeof UserProfileComposer>;
constructor(userId: number) constructor(userId: number, flag: boolean = true)
{ {
this._data = [ userId ]; this._data = [ userId, flag ];
} }
public getMessageArray() public getMessageArray()

View File

@ -107,7 +107,7 @@ export class RoomRenderer implements IRoomRenderer, IRoomSpriteCanvasContainer
{ {
const existing = this._canvases.get(id); const existing = this._canvases.get(id);
if(!existing) return; if(!existing) return null;
return existing; return existing;
} }