discourse/plugins/chat/app/services/chat
Joffrey JAFFEUX 26c8eab1f3
FIX: allows bots to create/update/stream messages (#26900)
Prior to this commit, only system users had this pass.

Another significant change of the PR, is to make membership of a channel the angular stone of the permission check to create/update/stop streaming a message. The idea being, if you are a member of a channel already we don't need to check if you can join it AGAIN.

We also have `Chat::AutoRemove::HandleCategoryUpdated` which will deal with permissions change so it's simpler and less prone to error to consider the membership as the only source of truth.
2024-05-07 15:17:42 +02: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 FIX: allows bots to create/update/stream messages (#26900) 2024-05-07 15:17:42 +02: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: adds first_messages/last_messages to thread SDK (#26861) 2024-05-03 17:30:39 +02: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
mark_thread_title_prompt_seen.rb FEATURE: encourage users to set chat thread titles (#26617) 2024-04-29 17:20:01 +08:00
message_destroyer.rb DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
publisher.rb FIX: do not increment reply count manually (#26769) 2024-04-26 12:32:06 +02: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 FIX: allows bots to create/update/stream messages (#26900) 2024-05-07 15:17:42 +02: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 FIX: allows bots to create/update/stream messages (#26900) 2024-05-07 15:17:42 +02: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_channel_last_read.rb FEATURE: implements last read message for threads (#26702) 2024-04-25 10:47:54 +02:00
update_user_thread_last_read.rb FEATURE: implements last read message for threads (#26702) 2024-04-25 10:47:54 +02:00
upsert_draft.rb DEV: Remove the need for splat operator in services 2024-03-07 15:54:37 +01:00