discourse/plugins/chat
Régis Hanol 7cf28fec7b
PERF: optimize chat user membership cleanup when removing a single user (#29833)
This optimizes a hot path when users are being removed from one or more groups since we use the `on(:user_removed_from_group)` event to call the `Chat::AutoLeaveChannels` with a `user_id` parameter. In such case, we don't need to clear the membership of all users, just that one user.

DEBUG: Also added a "-- event = <event>" comment on top of the SQL queries used by the "AutoLeaveChannels" so they show up in the logs and hopefully facilitate any performance issues that might arise in the future.
2024-11-20 09:21:02 +01:00
..
admin/assets/javascripts DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
app PERF: optimize chat user membership cleanup when removing a single user (#29833) 2024-11-20 09:21:02 +01:00
assets DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
config Update translations (#29835) 2024-11-20 00:21:25 +01:00
db DEV: adds blocks support to chat messages (#29782) 2024-11-19 07:07:58 +01:00
lib DEV: supports blocks in chat message sdk (#29839) 2024-11-20 08:06:48 +01:00
public
spec PERF: optimize chat user membership cleanup when removing a single user (#29833) 2024-11-20 09:21:02 +01:00
test/javascripts DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
plugin.rb PERF: auto join & leave chat channels (#29193) 2024-11-12 15:00:59 +11:00
README.md DEV: Chat service object initial implementation (#19814) 2023-02-13 13:09:57 +01:00

This plugin is still in active development and may change frequently

Documentation

The Discourse Chat plugin adds chat functionality to your Discourse so it can natively support both long-form and short-form communication needs of your online community.

For user documentation, see Discourse Chat.

For developer documentation, see Discourse Documentation.