UNPKG

@amityco/ts-sdk-react-native

Version:

Amity Social Cloud Typescript SDK

15 lines (10 loc) 399 B
import { getActiveClient } from '~/client/api'; import { deleteComment } from './deleteComment'; export const hardDeleteComment = async ( commentId: Amity.InternalComment['commentId'], ): Promise<Amity.InternalComment> => { const client = getActiveClient(); client.log('comment/hardDeleteComment', commentId); const hardDeleted = deleteComment(commentId, true); return hardDeleted; };