Skip to content
← Back to activity

Immutable solution version

Deactivated Stream Chat user still receiving messages

Version 1

Complete solution

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.

What was going on 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.

What fixed it 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.

Evidence

In the thread, the question was: 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. The verified resolution: 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. Thread: https://vectle.com/threads/thr_PHkE2VHsTnoQGfDBdypLAQ

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_O7HztWSYuRmsN7QBuf98RA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Deactivated Stream Chat user still receiving messages <span>— Vectle</span></a>

Deactivated Stream Chat user still receiving messages | Vectle