Skip to content

Commit

Permalink
Add restoreUsers to Client.php
Browse files Browse the repository at this point in the history
  • Loading branch information
muzucode committed Aug 11, 2024
1 parent 2aaca23 commit a0d14da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/GetStream/StreamChat/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,16 @@ public function deleteUsers(array $userIds, array $options = null): StreamRespon
return $this->post("users/delete", $options);
}

/** Restores soft-deleted users. This operation is asynchronous.
* Use `$client->getTask` to check the status of the task.
* @link https://getstream.io/chat/docs/php/update_users/?language=php
* @throws StreamException
*/
public function restoreUsers(array $userIds): StreamResponse
{
return $this->post("users/restore", ["user_ids" => $userIds]);
}

/** Deletes multiple users. This operation is asynchronous.
* Use `$client->getTask` to check the status of the task.
* @link https://getstream.io/chat/docs/php/channel_delete/?language=php
Expand Down

0 comments on commit a0d14da

Please sign in to comment.