0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/plugins/chat/test/javascripts/acceptance
Régis Hanol 87f9d907ab
FIX: Handle a member disabling chat in their preferences (#41805)
Previously, a member who turned chat off in their preferences saw their
existing chat notifications render as blank rows, and any chat link
silently bounced them to the homepage.

This change registers the chat notification renderers whenever chat is
enabled site-wide so those notifications still render correctly, and
sends chat links to a new "chat is disabled" page that explains how to
turn it back on.

**BEFORE**

(the notification are "blank")

<img width="1400" height="1200" alt="before-notifications"
src="https://github.com/user-attachments/assets/d8dcef2e-98eb-4b30-bf33-4a1f8c2c4626"
/>

**AFTER**

(the notification are there)

<img width="1400" height="1200" alt="after-notifications"
src="https://github.com/user-attachments/assets/72b17123-8f82-4c5e-a74d-7d5347de623a"
/>

(the "blank slate" page that is displayed when you click a #chat
notification after you've disabled #chat in your preferences)

<img width="1400" height="1200" alt="after-disabled-page"
src="https://github.com/user-attachments/assets/1905ecb5-7b8c-4682-87a9-1559ca4ec569"
/>
2026-07-17 16:21:12 +02:00
..
chat-channel-reactions-test.js DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-disabled-test.js FIX: Handle a member disabling chat in their preferences (#41805) 2026-07-17 16:21:12 +02:00
chat-email-preferences-test.js DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00
chat-message-retry-test.js DEV: Remove obsolete chat code and tests (#39451) 2026-04-22 21:33:17 +02:00
chat-new-message-test.js FEATURE: extend chat/new-message with prefilling text api (#40007) 2026-05-18 13:43:39 -03:00
hashtag-css-generator-test.js DEV: Remove plugin names from test titles (#39418) 2026-04-21 19:19:52 +02:00