UBERF-18: add reactions for comments (#3899)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2023-11-01 20:56:25 +07:00
committed by GitHub
parent 6ee350103a
commit 7da454355f
29 changed files with 495 additions and 97 deletions
+5 -1
View File
@@ -1,4 +1,4 @@
import type { DisplayTx, TxViewlet } from '@hcengineering/activity'
import type { ActivityExtension, DisplayTx, TxViewlet } from '@hcengineering/activity'
import core, {
AttachedDoc,
Class,
@@ -426,3 +426,7 @@ function filterCollectionTx (tx: DisplayTx): DisplayTx | undefined {
}
return ctx
}
export async function getExtensions (client: Client, ofClass: Ref<Class<Doc>>): Promise<ActivityExtension[]> {
return await client.findAll(activity.class.ActivityExtension, { ofClass })
}