mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-11 12:17:44 +02:00
[Part 2]: Sidebar and chat fixes (#6656)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user