discourse/plugins/chat/spec
David Battersby 23fc0fb078
FIX: allow direct message when max dm users set to 1 (#26392)
Why this change?
When the site setting for chat_max_direct_message_users is set to 1, it is expected that users can have a 1:1 chat with other users. However, since the current user is counting as 1 user it makes starting a new chat impossible.

This change hands this validation off to DirectMessageChannel::MaxUsersExcessPolicy which handles the count correctly by filtering out the current user.
2024-03-27 15:59:12 +08:00
..
components/chat DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
fabricators DEV: chat streaming (#25736) 2024-02-20 09:49:19 +01:00
integration DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
jobs DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
lib DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
mailers DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
models DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
policies/chat/channel DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
queries/chat DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
requests DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
serializer DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
services FIX: allow direct message when max dm users set to 1 (#26392) 2024-03-27 15:59:12 +08:00
support FIX: add status to channel membership serializer (#25906) 2024-02-27 18:23:59 +08:00
system FEATURE: the ability to expand/collapse all admin sections (#26358) 2024-03-27 14:42:06 +11:00
validators DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
plugin_helper.rb FEATURE: implements drafts for threads (#24483) 2023-11-22 11:54:23 +01:00
plugin_spec.rb DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00