[Part 2]: Sidebar and chat fixes (#6656)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2024-09-20 22:07:04 +07:00
committed by GitHub
parent 25ab61f488
commit f2c961c5d5
31 changed files with 185 additions and 95 deletions
@@ -37,6 +37,7 @@
import view, { decodeObjectURI } from '@hcengineering/view'
import { parseLinkId } from '@hcengineering/view-resources'
import { get } from 'svelte/store'
import { getResource } from '@hcengineering/platform'
import { InboxNotificationsClientImpl } from '../../inboxNotificationsClient'
import notification from '../../plugin'
@@ -179,6 +180,12 @@
}
const selectedMessageId = loc?.loc.query?.message as Ref<ActivityMessage> | undefined
const thread = loc?.loc.path[4] as Ref<ActivityMessage> | undefined
if (thread !== undefined) {
const fn = await getResource(chunter.function.OpenThreadInSidebar)
void fn(thread)
}
if (selectedMessageId !== undefined) {
selectedMessage = get(inboxClient.activityInboxNotifications).find(