Skip to content

Commit 720da1a

Browse files
docs: improving description
1 parent 0967fcf commit 720da1a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

docusaurus/docs/reactnative/basics/troubleshooting.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,20 +246,16 @@ dependencies {
246246
}
247247
```
248248

249-
## Blank screen on channel delete
249+
## Blank screen when channel gets delete
250250

251-
When a channel is deleted, and you are active on that channel a blank screen appears by default in the SDK as we return `null` by checking the status of the event returned from the backend.
252-
A user can go back to the channel list and then the channel gets disappeared from the list. At the same time, an event is shared from the backend which could be listened to get the status of the deleted channel.
253-
254-
Users can listen to the event and store the status of the deleted channel and thereby display the appropriate message in the UI.
251+
When a channel is deleted, and if some user is active on that channel, a blank screen appears by default (as per the default logic) as we return `null` in this case. It might be confusing for end user to see a blank screen and appropriate UX would be to navigate back to channel list screen. You can implement such UX by listening to `channel.deleted` event on channel screen, and navigate to channel list screen with appropriate notification on app.
255252

256253
```tsx
257254
client.on('channel.deleted', (event) => {
258255
if (event.cid === channel.cid) {
259256
// add your action here
260257
}
261258
}),
262-
```
263259

264260
## Touchables not working
265261

0 commit comments

Comments
 (0)