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/components/message/helpers/getCheckboxLabel.tsx

13 lines
414 B

import type { IMessage } from '@rocket.chat/core-typings';
import type { TFunction } from 'i18next';
export const getCheckboxLabel = (message: IMessage, t: TFunction): string => {
const username = message.u.name || message.u.username;
if (message.msg) {
return t('Select_message_from_user_with_preview', {
username,
message: message.msg,
});
}
return t('Select_message_from_user', { username });
};