Skip to content

Commit bbab28b

Browse files
authored
Add restoreUsers to Client.php (#122)
1 parent 2aaca23 commit bbab28b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/GetStream/StreamChat/Client.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,16 @@ public function deleteUsers(array $userIds, array $options = null): StreamRespon
399399
return $this->post("users/delete", $options);
400400
}
401401

402+
/** Restores soft-deleted users. This operation is asynchronous.
403+
* Use `$client->getTask` to check the status of the task.
404+
* @link https://getstream.io/chat/docs/php/update_users/?language=php
405+
* @throws StreamException
406+
*/
407+
public function restoreUsers(array $userIds): StreamResponse
408+
{
409+
return $this->post("users/restore", ["user_ids" => $userIds]);
410+
}
411+
402412
/** Deletes multiple users. This operation is asynchronous.
403413
* Use `$client->getTask` to check the status of the task.
404414
* @link https://getstream.io/chat/docs/php/channel_delete/?language=php

0 commit comments

Comments
 (0)