Skip to content

Commit

Permalink
feat: restore users endpoint (#1057)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaziine authored Oct 25, 2022
1 parent 02c3738 commit a86411f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1914,6 +1914,17 @@ export class StreamChat<StreamChatGenerics extends ExtendableGenerics = DefaultG
);
}

/**
* restoreUsers - Restore soft deleted users
*
* @param {string[]} user_ids which users to restore
*
* @return {APIResponse} A task ID
*/
async restoreUsers(user_ids: string[]) {
return await this.post<APIResponse>(this.baseURL + `/users/restore`, { user_ids });
}

async reactivateUser(
userID: string,
options?: { created_by_id?: string; name?: string; restore_messages?: boolean },
Expand Down

0 comments on commit a86411f

Please sign in to comment.