This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/plugins/chat/assets/javascripts/discourse
Martin Brennan 8437081d94
FIX: Add MessageBust.last_id to chat channel subscriptions (#19255)
This commit adds variousMessageBus.last_ids to serializer payloads
for chat channels and the chat view (for chat live pane) so
we can use those IDs when subscribing to MessageBus channels
from chat.

This allows us to ensure that any messages created between the
server being hit and the UI loaded and subscribing end up being
delivered to the client, rather than just silently dropped.

This commit also fixes an issue where we were subscribing to
the new-messages and new-mentions MessageBus channels multiple
times when following/unfollowing a channel multiple times.
2022-12-02 10:57:53 +10:00
..
adapters DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
components FIX: Add MessageBust.last_id to chat channel subscriptions (#19255) 2022-12-02 10:57:53 +10:00
connectors REFACTOR: naming and state refactor (#19187) 2022-11-25 14:15:38 +01:00
controllers FIX: ensures chat sidebar is present when core sidebar is disabled (#19197) 2022-11-25 19:28:10 +01:00
helpers DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
initializers FIX: Add MessageBust.last_id to chat channel subscriptions (#19255) 2022-12-02 10:57:53 +10:00
lib FIX: Automatically generate category channel slugs (#18879) 2022-11-09 10:28:31 +10:00
models DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00
modifiers/chat DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
pre-initializers DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
routes REFACTOR: naming and state refactor (#19187) 2022-11-25 14:15:38 +01:00
services FIX: Add MessageBust.last_id to chat channel subscriptions (#19255) 2022-12-02 10:57:53 +10:00
templates DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
widgets UX: alters chat icon behavior on drawer and mobile (#19192) 2022-11-25 15:12:32 +01:00
admin-chat-route-map.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-route-map.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
preferences-chat-route-map.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00