discourse/plugins/chat/spec/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
..
add_users_to_channel_spec.rb FEATURE: Allow users to DM groups in chat (#25189) 2024-01-19 11:09:47 -03:00
auto_join_channel_batch_spec.rb DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
create_category_channel_spec.rb FIX: Allow several chat channels to have an empty slug (#25680) 2024-02-15 00:39:39 +04:00
create_direct_message_channel_spec.rb FIX: allow direct message when max dm users set to 1 (#26392) 2024-03-27 15:59:12 +08:00
create_message_spec.rb FEATURE: allows to force a thread (#25987) 2024-03-06 12:03:42 +01:00
create_thread_spec.rb DEV: adds a `:chat_thread_created` trigger (#24133) 2023-10-27 10:27:34 +02:00
flag_message_spec.rb DEV: uses `in: {}` with lambda to work with `eager_load` (#25039) 2023-12-29 12:45:07 +08:00
invite_users_to_channel_spec.rb FIX: ensures users can open channel invites (#24067) 2023-10-24 18:51:33 +02:00
leave_channel_spec.rb FIX: leaving a group channel should destroy membership (#24631) 2023-11-29 17:48:14 +01:00
list_channel_messages_spec.rb FIX: do not use return in block (#26260) 2024-03-20 10:49:28 +01:00
list_channel_thread_messages_spec.rb FEATURE: allows to force a thread (#25987) 2024-03-06 12:03:42 +01:00
list_user_channels_spec.rb PERF: defer loading channels (#26155) 2024-03-18 08:35:07 +01:00
lookup_channel_threads_spec.rb DEV: removes default service actions (#26078) 2024-03-07 12:10:43 +01:00
lookup_thread_spec.rb FEATURE: allows to force a thread (#25987) 2024-03-06 12:03:42 +01:00
lookup_user_threads_spec.rb FEATURE: my threads page (#24771) 2023-12-11 07:38:07 +01:00
mark_all_user_channels_read_spec.rb DEV: Redesign chat mentions (#24752) 2024-01-17 15:24:01 +04:00
message_destroyer_spec.rb DEV: Refactor chat specs related to message creation 2023-08-31 11:21:23 +02:00
publisher_spec.rb DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
restore_message_spec.rb FEATURE: add outgoing web hooks for Chat messages 2023-09-13 17:31:42 -03:00
search_chatable_spec.rb FEATURE: allow re-scoping chat user search via a plugin (#26361) 2024-03-27 08:55:53 +11:00
stop_message_streaming_spec.rb DEV: chat streaming (#25736) 2024-02-20 09:49:19 +01:00
tracking_state_spec.rb DEV: Remove experimental site setting for chat threads (#22720) 2023-07-26 12:46:23 +02:00
trash_channel_spec.rb
trash_message_spec.rb DEV: Redesign chat mentions (#24752) 2024-01-17 15:24:01 +04:00
unfollow_channel_spec.rb FIX: leaving a group channel should destroy membership (#24631) 2023-11-29 17:48:14 +01:00
update_channel_spec.rb FIX: use site setting to show my threads chat footer tab (#25277) 2024-01-23 19:14:46 +08:00
update_channel_status_spec.rb
update_message_spec.rb FEATURE: Hide user status when user is hiding public profile and presence (#24300) 2024-02-26 17:40:48 +04:00
update_thread_notification_settings_spec.rb DEV: Refactor chat specs related to message creation 2023-08-31 11:21:23 +02:00
update_thread_spec.rb DEV: chat streaming (#25736) 2024-02-20 09:49:19 +01:00
update_user_last_read_spec.rb DEV: Redesign chat mentions (#24752) 2024-01-17 15:24:01 +04:00
update_user_thread_last_read_spec.rb DEV: Redesign chat mentions (#24752) 2024-01-17 15:24:01 +04:00
upsert_draft_spec.rb FEATURE: implements drafts for threads (#24483) 2023-11-22 11:54:23 +01:00