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/chats/flows/replyBroadcast.ts

16 lines
450 B

import type { IMessage } from '@rocket.chat/core-typings';
import { router } from '../../../providers/RouterProvider';
import { roomCoordinator } from '../../rooms/roomCoordinator';
import type { ChatAPI } from '../ChatAPI';
export const replyBroadcast = async (_chat: ChatAPI, message: IMessage) => {
roomCoordinator.openRouteLink(
'd',
{ name: message.u.username },
{
...router.getSearchParameters(),
reply: message._id,
},
);
};