Fix card activity (#10393)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2026-01-12 12:31:01 +05:00
committed by GitHub
parent 36927fbd98
commit 289b1d2efc
-10
View File
@@ -22,7 +22,6 @@ export async function getCardSections (card: Card): Promise<CardSection[]> {
const sections: CardSection[] = client
.getModel()
.findAllSync(cardPlugin.class.CardSection, {})
.filter((it) => it._id !== communication.ids.CardMessagesSection)
.sort((a, b) => a.order - b.order)
const res: CardSection[] = []
@@ -69,14 +68,5 @@ export function getCardToc (sections: CardSection[], tocBySection: Record<string
}
}
if (getMetadata(communication.metadata.Enabled) === true) {
newToc.push({
id: communication.ids.CardMessagesSection,
titleIntl: communication.string.Messages,
level: 0,
group: communication.ids.CardMessagesSection
})
}
return newToc
}