From 4c02a5eb2cde31f6c06406935ecad5648abc650f Mon Sep 17 00:00:00 2001 From: Kristina Date: Tue, 28 May 2024 18:57:09 +0400 Subject: [PATCH] Fix missing direct for companion (#5686) Signed-off-by: Kristina Fefelova --- .../src/components/chat/create/CreateChannel.svelte | 2 +- .../src/components/chat/create/CreateDirectChat.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/chunter-resources/src/components/chat/create/CreateChannel.svelte b/plugins/chunter-resources/src/components/chat/create/CreateChannel.svelte index deda3ffdd1..2c107044f0 100644 --- a/plugins/chunter-resources/src/components/chat/create/CreateChannel.svelte +++ b/plugins/chunter-resources/src/components/chat/create/CreateChannel.svelte @@ -60,7 +60,7 @@ members: [accountId], topic: description }) - await client.createDoc(notification.class.DocNotifyContext, core.space.Space, { + await client.createDoc(notification.class.DocNotifyContext, channelId, { user: accountId, attachedTo: channelId, attachedToClass: chunter.class.Channel, diff --git a/plugins/chunter-resources/src/components/chat/create/CreateDirectChat.svelte b/plugins/chunter-resources/src/components/chat/create/CreateDirectChat.svelte index 01c00d94a8..2660dc6325 100644 --- a/plugins/chunter-resources/src/components/chat/create/CreateDirectChat.svelte +++ b/plugins/chunter-resources/src/components/chat/create/CreateDirectChat.svelte @@ -87,7 +87,7 @@ return } - await client.createDoc(notification.class.DocNotifyContext, core.space.Space, { + await client.createDoc(notification.class.DocNotifyContext, dmId, { user: myAccId, attachedTo: dmId, attachedToClass: chunter.class.DirectMessage,