RocketChat/Rocket.Chat

View on GitHub
apps/meteor/server/services/federation/application/room/input/UserReceiverDto.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { IFederationReceiverBaseRoomInputDto } from './RoomReceiverDto';
import { FederationBaseRoomInputDto } from './RoomReceiverDto';

interface IFederationUserTypingStatusInputDto extends IFederationReceiverBaseRoomInputDto {
    externalUserIdsTyping: string[];
}

export class FederationUserTypingStatusEventDto extends FederationBaseRoomInputDto {
    constructor({ externalRoomId, normalizedRoomId, externalUserIdsTyping }: IFederationUserTypingStatusInputDto) {
        super({ externalRoomId, normalizedRoomId, externalEventId: '' });
        this.externalRoomId = externalRoomId;
        this.normalizedRoomId = normalizedRoomId;
        this.externalUserIdsTyping = externalUserIdsTyping;
    }

    externalUserIdsTyping: string[];
}