Merge branch 'patch/room-invite-packet' into 'main'

Patch/room invite packet

See merge request nitro/nitro-renderer!15
This commit is contained in:
Bill 2022-03-26 01:33:04 +00:00
commit 6a92c06e9b
2 changed files with 5 additions and 6 deletions

View File

@ -78,7 +78,6 @@ export class IncomingHeader
public static MESSENGER_REQUEST = 2219;
public static MESSENGER_REQUEST_ERROR = 892;
public static MESSENGER_REQUESTS = 280;
public static MESSENGER_ROOM_INVITE = 3870;
public static MESSENGER_SEARCH = 973;
public static MESSENGER_UPDATE = 2800;
public static MODERATION_REPORT_DISABLED = 1651;

View File

@ -1,12 +1,12 @@
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
export class SendRoomInviteComposer implements IMessageComposer<ConstructorParameters<typeof SendRoomInviteComposer>>
export class SendRoomInviteComposer implements IMessageComposer<any>
{
private _data: ConstructorParameters<typeof SendRoomInviteComposer>;
private _data: any;
constructor(message: string, ...userIds: number[])
constructor(message: string, userIds: number[])
{
this._data = [ message, userIds.length, ...userIds ];
this._data = [ userIds.length, ...userIds, message ];
}
public getMessageArray()
@ -18,4 +18,4 @@ export class SendRoomInviteComposer implements IMessageComposer<ConstructorParam
{
return;
}
}
}