mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-02-21 12:02:36 +01:00
fix room invite composer
This commit is contained in:
parent
7eb86443dc
commit
4f44b0a60c
@ -78,7 +78,6 @@ export class IncomingHeader
|
|||||||
public static MESSENGER_REQUEST = 2219;
|
public static MESSENGER_REQUEST = 2219;
|
||||||
public static MESSENGER_REQUEST_ERROR = 892;
|
public static MESSENGER_REQUEST_ERROR = 892;
|
||||||
public static MESSENGER_REQUESTS = 280;
|
public static MESSENGER_REQUESTS = 280;
|
||||||
public static MESSENGER_ROOM_INVITE = 3870;
|
|
||||||
public static MESSENGER_SEARCH = 973;
|
public static MESSENGER_SEARCH = 973;
|
||||||
public static MESSENGER_UPDATE = 2800;
|
public static MESSENGER_UPDATE = 2800;
|
||||||
public static MODERATION_REPORT_DISABLED = 1651;
|
public static MODERATION_REPORT_DISABLED = 1651;
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import { IMessageComposer } from '../../../../../core/communication/messages/IMessageComposer';
|
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(userIds: number[], message: string)
|
||||||
{
|
{
|
||||||
this._data = [ message, userIds.length, ...userIds ];
|
this._data = [ userIds.length, ...userIds, message ];
|
||||||
}
|
}
|
||||||
|
|
||||||
public getMessageArray()
|
public getMessageArray()
|
||||||
@ -18,4 +18,4 @@ export class SendRoomInviteComposer implements IMessageComposer<ConstructorParam
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user