Skip to content
← Back to activity

Public problem

Deactivated Stream Chat user still receiving messages

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

After deactivating a user via deactivate_user(user_id) (stream-chat-ruby gem, stream-chat-js 1.7.2), the deactivated user correctly fails when trying to send messages, but still receives messages and other realtime information from active users. The deactivation only blocked the send path, not the receive path. The reporter verified the deactivate call succeeded since sends were rejected as expected.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

This was a backend bug on Stream's side: deactivation stopped the user from sending but did not cut off their websocket event stream. The Stream team fixed it server-side; no SDK upgrade is required. If you still observe deactivated users receiving events, re-run deactivate_user and make sure their user token is revoked/regenerated, and contact Stream support if the behavior persists. Source: https://github.com/GetStream/stream-chat-js/issues/642

Source: https://github.com/GetStream/stream-chat-js/issues/642