discourse/plugins/chat/app/services/chat
Joffrey JAFFEUX 41790f7739
DEV: allows stop/resume streaming on a message (#25774)
```ruby
ChatSDK::Message.start_stream(message_id: 1, guardian: guardian)
ChatSDK::Message.stream(raw: "foo", message_id: 1, guardian: guardian)
ChatSDK::Message.stream(raw: "bar", message_id: 1, guardian: guardian)
ChatSDK::Message.stop_stream(message_id: 1, guardian: guardian)
```

Generally speaking only admins or owners of the message can interact with a message.  Also note, Streaming to an existing message with a different user won't change the initial user of the message.
2024-02-26 14:16:29 +01:00
..
action DEV: Allow chat mentions to have several notifications (#24874) 2023-12-19 18:53:00 +04:00
auto_remove
add_users_to_channel.rb FEATURE: Allow users to DM groups in chat (#25189) 2024-01-19 11:09:47 -03:00
auto_join_channel_batch.rb FIX: removes useless model reload (#23016) 2023-08-08 22:44:30 +02:00
create_category_channel.rb FEATURE: enable_public_channels site setting (#22565) 2023-07-13 10:00:25 +02:00
create_direct_message_channel.rb DEV: adds a `chat_can_create_direct_message_channel` modifier (#25840) 2024-02-23 14:35:02 +01:00
create_message.rb DEV: chat streaming (#25736) 2024-02-20 09:49:19 +01:00
create_thread.rb DEV: adds a `:chat_thread_created` trigger (#24133) 2023-10-27 10:27:34 +02:00
flag_message.rb DEV: uses `in: {}` with lambda to work with `eager_load` (#25039) 2023-12-29 12:45:07 +08:00
invite_users_to_channel.rb FIX: ensures users can open channel invites (#24067) 2023-10-24 18:51:33 +02:00
leave_channel.rb FIX: leaving a group channel should destroy membership (#24631) 2023-11-29 17:48:14 +01:00
list_channel_messages.rb FIX: nullifies target message id when not readable (#24540) 2023-11-24 11:46:00 +01:00
list_channel_thread_messages.rb DEV: chat streaming (#25736) 2024-02-20 09:49:19 +01:00
lookup_channel_threads.rb FIX: errors when loading My Threads and Channel Threads (#25310) 2024-01-18 17:35:32 +04:00
lookup_thread.rb DEV: Remove experimental site setting for chat threads (#22720) 2023-07-26 12:46:23 +02:00
lookup_user_threads.rb FIX: errors when loading My Threads and Channel Threads (#25310) 2024-01-18 17:35:32 +04:00
mark_all_user_channels_read.rb DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
message_destroyer.rb DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
publisher.rb DEV: Revert guardian changes (#24742) 2023-12-06 16:37:32 +10:00
restore_message.rb DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
search_chatable.rb FEATURE: Allow users to DM groups in chat (#25189) 2024-01-19 11:09:47 -03:00
stop_message_streaming.rb DEV: allows stop/resume streaming on a message (#25774) 2024-02-26 14:16:29 +01:00
tracking_state.rb DEV: Remove experimental site setting for chat threads (#22720) 2023-07-26 12:46:23 +02:00
trash_channel.rb
trash_message.rb DEV: Allow chat mentions to have several notifications (#24874) 2023-12-19 18:53:00 +04:00
unfollow_channel.rb FIX: leaving a group channel should destroy membership (#24631) 2023-11-29 17:48:14 +01:00
update_channel.rb FIX: use site setting to show my threads chat footer tab (#25277) 2024-01-23 19:14:46 +08:00
update_channel_status.rb
update_message.rb DEV: chat streaming (#25736) 2024-02-20 09:49:19 +01:00
update_thread.rb DEV: chat streaming (#25736) 2024-02-20 09:49:19 +01:00
update_thread_notification_settings.rb DEV: Add last_message_id to channel and thread (#22488) 2023-07-13 10:28:11 +10:00
update_user_last_read.rb
update_user_thread_last_read.rb DEV: Further improve thread list query and add spec (#22610) 2023-07-14 16:08:35 +10:00
upsert_draft.rb FEATURE: implements drafts for threads (#24483) 2023-11-22 11:54:23 +01:00