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/toolbar/items/DirectItems.tsx

15 lines
458 B

import type { IRoom, ISubscription, IMessage } from '@rocket.chat/core-typings';
import JumpToMessageAction from './actions/JumpToMessageAction';
type DirectItemsProps = {
message: IMessage;
room: IRoom;
subscription: ISubscription | undefined;
};
const DirectItems = ({ message, subscription }: DirectItemsProps) => {
return <>{!!subscription && <JumpToMessageAction id='jump-to-pin-message' message={message} />}</>;
};
export default DirectItems;