900080 blocked_user_receive_message_not_allowed

[SDK Version]
4.6.1

[Reproduction Steps]

  1. User A creates a group channel.
  2. User B joins the group channel.
  3. User A blocks User B.
  4. When User A sends a message, the 900080 (BLOCKED_USER_RECEIVE_MESSAGE_NOT_ALLOWED) error occurs.

This error does not occur in the following scenario:

  1. User A creates a group channel.
  2. User B joins the group channel.
  3. User C joins the group channel.
  4. User A blocks User B and User C.
  5. When User A sends a message, it succeeds without error.

[Problem/Question]
Based on the Reproduction Steps, the 900080 error only occurs when there are exactly two members left in the group channel (myself and the other user), effectively making it a 1:1 situation.

  1. Why does this error only happen in a 1:1 scenario?
  2. Has this error code been defined and used for a long time, or is it relatively new?
  3. Is this error related to the distinct option when creating the group channel? Currently, we create channels with distinct: false.
  4. When this error code occurs, what is the recommended way for the app to handle it?
  5. Is there an option to prevent this error from occurring in the first place?

[Frequency]
Occurs every time under the conditions described.

[Current Impact]
Since our app does not have exception handling for this error, users see an error popup whenever it occurs.

Hi @Co_jobs,

Error 900080 occurs only when a blocking user attempts to message a blocked user in a distinct 1-to-1 channel.

Could you verify if this is the case?

Link: https://sendbird.com/docs/chat/sdk/v4/javascript/error-codes#2-server-error-codes

Hi @Suhirtha_Ayyappan,

Yes, that’s correct. As noted in the reproduction steps, the issue only occurs in one-to-one scenarios. It does not occur when there are two or more other participants. More precisely, even if I block both of the other parties, the error doesn’t occur because it isn’t a one-to-one situation.

@Co_jobs, this is the expected behaviour.