feat: notify users when chats are shared (#26914)

This commit is contained in:
Danielle Maywood
2026-07-06 13:15:58 +01:00
committed by GitHub
parent b21e0717d5
commit 7c78698a6d
11 changed files with 311 additions and 2 deletions
@@ -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
);