New Activity - squashed (#4032)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
Co-authored-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Kristina
2023-12-11 18:54:36 +07:00
committed by GitHub
co-authored by Andrey Sobolev
parent 119d65653a
commit ea3eb4af83
212 changed files with 7611 additions and 3159 deletions
@@ -34,10 +34,9 @@ import { getMetadata, IntlString } from '@hcengineering/platform'
import { Person, PersonAccount } from '@hcengineering/contact'
import serverCore, { TriggerControl } from '@hcengineering/server-core'
import tracker, { Component, Issue, IssueParentInfo, TimeSpendReport, trackerId } from '@hcengineering/tracker'
import { NotificationContent } from '@hcengineering/notification'
import notification, { ChatMessage, NotificationContent } from '@hcengineering/notification'
import { workbenchId } from '@hcengineering/workbench'
import chunter, { Comment } from '@hcengineering/chunter'
import { stripTags } from '@hcengineering/text'
async function updateSubIssues (
@@ -115,8 +114,8 @@ export async function getIssueNotificationContent (
const ptx = tx as TxCollectionCUD<Doc, AttachedDoc>
if (ptx.tx._class === core.class.TxCreateDoc) {
if (ptx.tx.objectClass === chunter.class.Comment) {
const createTx = ptx.tx as TxCreateDoc<Comment>
if (ptx.tx.objectClass === notification.class.ChatMessage) {
const createTx = ptx.tx as TxCreateDoc<ChatMessage>
const message = createTx.attributes.message
const plainTextMessage = stripTags(message, NOTIFICATION_BODY_SIZE)
intlParams.message = plainTextMessage