AI Integration Quick Reference
AI Integration Quick Reference
Components
Implementation Steps
1. Block User
CallCometChat.blockUsers() with the target UID. On success, update the local user object with setBlockedByMe(true) and emit ccUserBlocked so all subscribed components react to the change.
2. Unblock User
CallCometChat.unblockUsers() with the target UID. On success, update the local user object and emit ccUserUnblocked to restore the composer.
3. Confirmation Dialog
Show a confirmation dialog before blocking. This prevents accidental blocks.4. Composer Blocked State
When a user is blocked, the composer is replaced with an unblock prompt.5. Event Listeners
Subscribe to block/unblock events to update the UI in real time. Clean up subscriptions inngOnDestroy.
Feature Matrix
Next Steps
Users
Display and manage user lists.
Message Composer
Customize the message input component.
All Guides
Browse all feature and formatter guides.
Sample App
Full working sample application on GitHub.