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

7 lines
183 B
TypeScript
Raw Normal View History

2022-02-28 18:00:47 +00:00
import sdk from './sdk';
// RC 0.64.0
const toggleFavorite = (roomId: string, favorite: boolean) => sdk.post('rooms.favorite', { roomId, favorite });
export default toggleFavorite;