discourse/plugins/chat/lib/chat
Jan Cernik ac9e804dbe
FEATURE: Add threads support to chat archives (#24325)
This PR introduces thread support for channel archives. Now, threaded messages are rendered inside a `details` HTML tag in posts.

The transcript markdown rules now support two new attributes: `threadId` and `threadTitle`.

- If `threadId` is present, all nested `chat` tags are rendered inside the first one.
- `threadTitle` (optional) defines the summary content.

```
[chat threadId=19 ... ]
thread OM

  [chat ... ]
  thread reply
  [/chat]

[/chat]
```

If threads are split across multiple posts when archiving, the range of messages in each part will be displayed alongside the thread title. For example: `(message 1 to 16 of 20)` and `(message 17 to 20 of 20)`.
2023-11-27 15:47:35 +01:00
..
types FIX: ActiveModel::Types :array load error in production (#22377) 2023-07-03 11:30:09 +10:00
bookmark_extension.rb DEV: Refactor STI/polymorphic associations in chat (#20789) 2023-04-17 15:41:56 +02:00
category_extension.rb DEV: Refactor STI/polymorphic associations in chat (#20789) 2023-04-17 15:41:56 +02:00
channel_archive_service.rb FEATURE: Add threads support to chat archives (#24325) 2023-11-27 15:47:35 +01:00
channel_fetcher.rb FIX: Preload the right fields on categories (#24396) 2023-11-15 16:34:03 -06:00
channel_hashtag_data_source.rb DEV: Remove enable_experimental_hashtag_autocomplete logic (#22820) 2023-08-08 11:18:55 +10:00
channel_membership_manager.rb FEATURE: Auto-remove users without permission from channel (#20344) 2023-03-22 10:19:59 +10:00
duplicate_message_validator.rb
engine.rb FEATURE: Add onebox support for chat threads (#23580) 2023-10-25 14:30:39 +02:00
guardian_extensions.rb FEATURE: introduces group channels (#24288) 2023-11-10 11:29:28 +01:00
mailer.rb
message_bookmarkable.rb SECURITY: Filter unread bookmark reminders the user cannot see 2023-11-09 13:39:16 +11:00
message_mover.rb DEV: Migrate `Chat::MessageCreator` to a service (#22390) 2023-09-07 08:57:29 +02:00
message_processor.rb PERF: cook message in background (#24227) 2023-11-06 15:45:30 +01:00
message_rate_limiter.rb
message_reactor.rb
messages_exporter.rb FIX: Don't fail when exporting chat messages from deleted channels (#23131) 2023-08-18 14:22:24 +04:00
notification_levels.rb FIX: Chat NotificationLevels extension breaking in prod (#21484) 2023-05-10 18:46:06 +02:00
notifier.rb FIX: Further optimize mentioning groups in chat messages (#24122) 2023-10-31 18:17:37 +04:00
onebox_handler.rb FEATURE: Add onebox support for chat threads (#23580) 2023-10-25 14:30:39 +02:00
outgoing_web_hook_extension.rb FEATURE: granular webhooks (#23070) 2023-10-09 03:35:31 +00:00
parsed_mentions.rb FIX: Further optimize mentioning groups in chat messages (part 2) (#24185) 2023-11-01 17:05:54 +04:00
plugin_instance_extension.rb
post_notification_handler.rb
review_queue.rb FIX: Create a reviewable when flagging a chat message for 'something else' (#23264) 2023-08-25 17:38:27 +08:00
reviewable_extension.rb DEV: Refactor STI/polymorphic associations in chat (#20789) 2023-04-17 15:41:56 +02:00
secure_uploads_compatibility.rb
seeder.rb
slack_compatibility.rb
statistics.rb DEV: Ability to collect stats without exposing them via API (#23933) 2023-11-10 00:44:05 +04:00
steps_inspector.rb DEV: Add policy objects to services 2023-05-25 12:34:00 +02:00
transcript_service.rb FEATURE: Add threads support to chat archives (#24325) 2023-11-27 15:47:35 +01:00
user_email_extension.rb
user_extension.rb FEATURE: introduces group channels (#24288) 2023-11-10 11:29:28 +01:00
user_notifications_extension.rb FIX: correctly uses private_email site setting in chat (#24528) 2023-11-23 15:54:22 +01:00
user_option_extension.rb FEATURE: Add new chat indicator preference for Only Mentions (#23848) 2023-10-27 15:58:19 +08:00