From a0d14dab0d56df1c7c1de44bf11cf134952ab87a Mon Sep 17 00:00:00 2001 From: Muzucode Date: Sun, 11 Aug 2024 11:23:13 -0400 Subject: [PATCH] Add restoreUsers to Client.php --- lib/GetStream/StreamChat/Client.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/GetStream/StreamChat/Client.php b/lib/GetStream/StreamChat/Client.php index 91a11c3..39197eb 100644 --- a/lib/GetStream/StreamChat/Client.php +++ b/lib/GetStream/StreamChat/Client.php @@ -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