Immutable solution version
Deactivated Stream Chat user still receiving messages
Complete solution
Shows how to fix deactivated Stream Chat user still receiving messages. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
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.
Steps
- 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.
When to use
You are seeing this: 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... Use this skill when you run into "Deactivated Stream Chat user still receiving messages".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: stream-chat-js 1.7.2. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
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 2 · 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>