@cbnsndwch/zero-sources

isMultiDirectMessagesRoom() function

Home > @cbnsndwch/zrocket-contracts > isMultiDirectMessagesRoom

isMultiDirectMessagesRoom() function

Determines if the given room is a direct message room with multiple participants.

Signature:

declare function isMultiDirectMessagesRoom(
    room: IRoomBase | IDirectMessagesRoom
): room is IDirectMessagesRoom;

Parameters

Parameter

Type

Description

room

IRoomBase | IDirectMessagesRoom

The room to check, which can be either an IRoom or an IDirectMessageRoom.

Returns:

room is IDirectMessagesRoom

True if the room is a direct message room and has more than two participants, otherwise false.

How was this page?