mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-27 01:40:52 +01:00
Add optional flag to UserProfileComposer
This commit is contained in:
parent
4aad057e02
commit
a9878403d8
@ -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()
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user