discourse/plugins/chat/app/services/chat
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
..
action DEV: Allow chat mentions to have several notifications (#24874) 2023-12-19 18:53:00 +04:00
auto_remove DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
add_users_to_channel.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
auto_join_channel_batch.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
create_category_channel.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
create_direct_message_channel.rb FIX: allow direct message when max dm users set to 1 (#26392) 2024-03-27 15:59:12 +08:00
create_message.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
create_thread.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
flag_message.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
invite_users_to_channel.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
leave_channel.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
list_channel_messages.rb FIX: do not use return in block (#26260) 2024-03-20 10:49:28 +01:00
list_channel_thread_messages.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
list_user_channels.rb PERF: defer loading channels (#26155) 2024-03-18 08:35:07 +01:00
lookup_channel_threads.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
lookup_thread.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
lookup_user_threads.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
mark_all_user_channels_read.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
message_destroyer.rb DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
publisher.rb FEATURE: allows to force a thread (#25987) 2024-03-06 12:03:42 +01:00
restore_message.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
search_chatable.rb FEATURE: allow re-scoping chat user search via a plugin (#26361) 2024-03-27 08:55:53 +11:00
stop_message_streaming.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
tracking_state.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
trash_channel.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
trash_message.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
unfollow_channel.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
update_channel_status.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
update_channel.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
update_message.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
update_thread_notification_settings.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
update_thread.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
update_user_last_read.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
update_user_thread_last_read.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00
upsert_draft.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00