verdnatura-chat/app/views/RoomView/services/readMessages.ts

6 lines
202 B
TypeScript

import RocketChat from '../../../lib/rocketchat';
const readMessages = (rid: string, newLastOpen: Date): Promise<void> => RocketChat.readMessages(rid, newLastOpen, true);
export default readMessages;