Real-time block/unblock event listener for the blocked user

Currently, the CometChat SDK provides real-time events only for the user who initiates the block action (ccUserBlocked / ccUserUnBlocked). The blocked user (User B) does not receive any real-time event when another user (User A) blocks or unblocks them. The hasBlockedMe flag on the user object is only updated when the user object is explicitly fetched from the server via CometChat.getUser() or on screen navigation.

This makes it impossible to update the blocked user's UI in real-time without relying on workarounds such as polling, send-failure detection, or a webhook-based backend solution.

The request is to add a new real-time listener event (e.g., onUserBlockedMe / onUserUnblockedMe) in the SDK's UserListener that fires on the blocked user's client when they are blocked or unblocked by another user. This would allow UIKit and app developers to immediately hide the composer, show a "You have been blocked" indicator, and update the conversation list without requiring server-side infrastructure or manual user object re-fetching.

Please authenticate to join the conversation.

Upvoters
Status

New

Board

πŸ’‘ Feature Request

Subscribe to post

Get notified by email when there are changes.