Deactivated User Connection Error Handling Issue and Solution

When trying to connect with a deactivated user ID, the catch block throws a login timeout error rather than a user deactivated error.

What’s the best practice for handling login attempts from deactivated users?

Hi @tayloryun,
If a deactivated user tries to log in, the SDK will through a 400300 error.

image

Link: Error codes | Chat iOS SDK | Sendbird Docs

Hello, @Suhirtha_Ayyappan
Can this be handled the same way in Flutter?

yes.

image

When connecting with a deactivated user using the project from sendbird-chat-sample-flutter, I could only handle LoginTimeoutException. How can I handle userDeactivated exception?