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/components
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
..
user-menu DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
channels-list.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
channels-list.js REFACTOR: naming and state refactor (#19187) 2022-11-25 14:15:38 +01:00
chat-browse-view.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-browse-view.js UX: ensures browse view input is focused on page load (#19137) 2022-11-22 08:57:17 +01:00
chat-channel-about-view.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-about-view.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-channel-archive-modal-inner.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-archive-modal-inner.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-channel-archive-status.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-archive-status.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-channel-card.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-card.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-channel-chooser-header.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-chooser-header.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-channel-chooser-row.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-chooser-row.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-channel-chooser.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-channel-delete-modal-inner.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-delete-modal-inner.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-channel-leave-btn.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-leave-btn.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-channel-members-view.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-members-view.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-channel-metadata.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-metadata.js UX: reworks channel index (drawer and mobile) (#18892) 2022-11-28 18:38:05 +01:00
chat-channel-preview-card.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-preview-card.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-channel-row.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-row.js UX: reworks channel index (drawer and mobile) (#18892) 2022-11-28 18:38:05 +01:00
chat-channel-selection-row.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-selection-row.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-channel-selector-modal-inner.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-selector-modal-inner.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-channel-settings-row.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-settings-row.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-channel-settings-view.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-settings-view.js FIX: enable_auto_join_users was used in create channel (#19128) 2022-11-21 14:28:11 +01:00
chat-channel-status.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-status.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-channel-title.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-title.js UX: reworks channel index (drawer and mobile) (#18892) 2022-11-28 18:38:05 +01:00
chat-channel-toggle-view.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-toggle-view.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-channel-unread-indicator.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-channel-unread-indicator.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-composer-dropdown.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-composer-dropdown.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-composer-inline-buttons.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-composer-inline-buttons.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-composer-message-details.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-composer-message-details.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-composer-upload.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-composer-upload.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-composer-uploads.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-composer-uploads.js REFACTOR: naming and state refactor (#19187) 2022-11-25 14:15:38 +01:00
chat-composer.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-composer.js REFACTOR: naming and state refactor (#19187) 2022-11-25 14:15:38 +01:00
chat-draft-channel-screen.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-draft-channel-screen.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-drawer.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-drawer.js FIX: prevents drawer error when resizing core composer (#19195) 2022-11-25 18:33:54 +01:00
chat-emoji-avatar.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-emoji-picker.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-emoji-picker.js UX: improves arrow support in chat emoji picker (#19038) 2022-11-16 08:52:48 +01:00
chat-live-pane.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-live-pane.js FIX: Add MessageBust.last_id to chat channel subscriptions (#19255) 2022-12-02 10:57:53 +10:00
chat-message-actions-desktop.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-message-actions-desktop.js PERF: do not cancel debounce and prevents popper on scroll (#19280) 2022-12-01 14:33:46 +01:00
chat-message-actions-mobile.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-message-actions-mobile.js REFACTOR: chat-msgactions (#18969) 2022-11-10 15:08:14 +01:00
chat-message-avatar.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-message-avatar.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-message-collapser.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-message-collapser.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-message-info.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-message-info.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-message-left-gutter.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-message-move-to-channel-modal-inner.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-message-move-to-channel-modal-inner.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-message-reaction.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-message-reaction.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-message-separator.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-message-separator.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-message-text.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-message-text.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-message.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-message.js UX: removes silence from chat message actions (#19282) 2022-12-01 15:32:22 +01:00
chat-replying-indicator.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-replying-indicator.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-retention-reminder.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-retention-reminder.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-selection-manager.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-selection-manager.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-skeleton.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-to-topic-selector.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-to-topic-selector.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-upload.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-upload.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-user-avatar.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-user-avatar.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-user-display-name.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
chat-user-display-name.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
chat-vh.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
collapser.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
collapser.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
d-progress-bar.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
d-progress-bar.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
dc-filter-input.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
dc-filter-input.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
direct-message-creator.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
direct-message-creator.js REFACTOR: handles every chat resource as an URL (#18961) 2022-11-11 06:39:15 +01:00
full-page-chat.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
full-page-chat.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
on-visibility-action.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
on-visibility-action.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
reviewable-chat-message.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
reviewable-chat-message.js DEV: Enable @cached decorator for themes and plugins (#19261) 2022-11-30 15:53:54 +00:00
sidebar-channels.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
sidebar-channels.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
toggle-channel-membership-button.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
toggle-channel-membership-button.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00
user-card-chat-button.hbs DEV: Colocate all chat component templates (#19266) 2022-11-30 17:55:07 +00:00
user-card-chat-button.js DEV: Move discourse-chat to the core repo. (#18776) 2022-11-02 10:41:30 -03:00