The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/client/lib/utils/messageArgs.ts

18 lines
508 B

import type { IRoom, ISubscription, ITranslatedMessage, IUser, SettingValue } from '@rocket.chat/core-typings';
export const messageArgs = (
context: any,
): {
context?: 'threads' | 'mentions';
msg: ITranslatedMessage;
u: IUser;
room: IRoom;
settings: Record<string, SettingValue>;
groupable: boolean;
hideRoles: boolean;
subscription: ISubscription;
customClass: string;
templatePrefix: string;
ignored: boolean;
shouldCollapseReplies: boolean;
} => context?._arguments?.[1]?.hash || context;