Restore channels
If you delete a channel, you can restore it using the Restore() method.
This is possible, however, only if the channel you want to restore was soft deleted (the soft parameter was set to true when deleting it). Hard deleted channels cannot be restored as their data is no longer available in App Context storage.
Requires App Context
To manage channels, you must enable App Context for your app's keyset in the Admin Portal.
Method signature
This method has the following signature:
1channel.Restore()
Input
This method doesn't take any parameters.
Output
| Type | Description |
|---|---|
Task<ChatOperationResult> | Returned Task that you can await to get the result of the restore operation. |
Sample code
Restore a previously soft deleted channel with the ID of support.
1