verdnatura-chat/app/lib/rocketchat/services/toggleFavorite.ts

7 lines
183 B
TypeScript

import sdk from './sdk';
// RC 0.64.0
const toggleFavorite = (roomId: string, favorite: boolean) => sdk.post('rooms.favorite', { roomId, favorite });
export default toggleFavorite;