mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
feat: notify users when chats are shared (#26914)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DELETE FROM notification_templates WHERE id = 'b789bd75-d7c6-4cab-9757-1147ab184903';
|
||||
@@ -0,0 +1,27 @@
|
||||
INSERT INTO notification_templates (
|
||||
id,
|
||||
name,
|
||||
title_template,
|
||||
body_template,
|
||||
actions,
|
||||
"group",
|
||||
method,
|
||||
kind,
|
||||
enabled_by_default
|
||||
)
|
||||
VALUES (
|
||||
'b789bd75-d7c6-4cab-9757-1147ab184903',
|
||||
'Chat Shared',
|
||||
E'{{.Labels.initiator}} shared a chat with you',
|
||||
E'{{.Labels.initiator}} shared the chat "**{{.Labels.chat_title}}**" with you.',
|
||||
'[
|
||||
{
|
||||
"label": "View chat",
|
||||
"url": "{{base_url}}/agents/{{.Labels.chat_id}}"
|
||||
}
|
||||
]'::jsonb,
|
||||
'Chat Events',
|
||||
NULL,
|
||||
'system'::notification_template_kind,
|
||||
true
|
||||
);
|
||||
Reference in New Issue
Block a user