fix room invite composer

This commit is contained in:
dank074 2022-03-25 18:20:18 -05:00
parent 7eb86443dc
commit 4f44b0a60c
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 = 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;

View File

@ -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()