discourse/plugins/chat/spec/services
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
..
actions DEV: Allow fab! without block (#24314) 2023-11-09 16:47:59 -06:00
auto_remove DEV: Remove full group refreshes from tests (#25414) 2024-01-25 14:28:26 +08:00
chat FIX: allow direct message when max dm users set to 1 (#26392) 2024-03-27 15:59:12 +08:00
hashtag_autocomplete_service_spec.rb DEV: Chat hashtag test (#25638) 2024-02-12 12:32:52 +10:00