Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorapo808 committed Jun 24, 2024
1 parent 131c71f commit b5618de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3691,14 +3691,14 @@ export class StreamChat<StreamChatGenerics extends ExtendableGenerics = DefaultG
}

/**
* flagFeedback - reviews/unflags flagged message
* updateFlags - reviews/unflags flagged message
*
* @param {string[]} message_ids list of message IDs
* @param {string} user_id user ID is set to review all the flagged messages by the user
* @param {string} reviewed_by user ID who reviewed the flagged message
* @returns {APIResponse}
*/
async flagFeedback(message_ids: string[], user_id: string, reviewed_by: string) {
async updateFlags(message_ids: string[], user_id: string, reviewed_by: string) {
return await this.post<APIResponse>(this.baseURL + '/automod/v1/moderation/update_flags', {
message_ids,
user_id,
Expand Down

0 comments on commit b5618de

Please sign in to comment.