discourse/plugins/chat/app/controllers/chat
Joffrey JAFFEUX bbb8595107
PERF: defer loading channels (#26155)
Prior to this change we would pre-load all the user channels which making initial page load slower. This change will make them be loaded right after initial load. In the past this was not possible as the channels would have to be loaded on each page transition. However since about a year, we made the channels to be cached on the frontend and no other request will be needed.

I have decided for now to not show a loading state in the sidebar as I think it would be noise, but we can reconsider this later.

Note given we don't have the channels loaded at first certain things where harder to accomplish. The biggest UX change of this commit is that we removed all the complex logic of computing the best channel to display when you load /chat. We will now store the id of the last channel you visited and will use this id to decide which channel to show.
2024-03-18 08:35:07 +01:00
..
admin FEATURE: Export chat messages to CSV file (#22113) 2023-06-21 16:13:36 +04:00
api PERF: defer loading channels (#26155) 2024-03-18 08:35:07 +01:00
api_controller.rb DEV: removes default service actions (#26078) 2024-03-07 12:10:43 +01:00
base_controller.rb DEV: Update rubocop-discourse to latest version 2024-03-04 15:08:35 +01:00
chat_controller.rb DEV: removes dead code (message_link) (#24648) 2023-11-30 11:13:37 +01:00
direct_messages_controller.rb DEV: Refactor DM channel creation into new service pattern (#22144) 2023-07-03 10:18:37 +10:00
emojis_controller.rb FEATURE: Add an emoji deny list site setting (#20929) 2023-04-13 15:38:54 +08:00
incoming_webhooks_controller.rb DEV: removes default service actions (#26078) 2024-03-07 12:10:43 +01:00