Fix push titles (#7220)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina 2024-11-22 11:16:45 +04:00 committed by GitHub
parent 925e028bde
commit 33e086adec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -321,13 +321,13 @@ export async function getChunterNotificationContent (
body = chunter.string.MessageNotificationBody
if (control.hierarchy.isDerived(tx.objectClass, chunter.class.DirectMessage)) {
if (tx.attachedToClass != null && control.hierarchy.isDerived(tx.attachedToClass, chunter.class.DirectMessage)) {
body = chunter.string.DirectNotificationBody
title = chunter.string.DirectNotificationTitle
}
}
if (control.hierarchy.isDerived(tx.objectClass, chunter.class.ChatMessage)) {
if (tx.attachedToClass != null && control.hierarchy.isDerived(tx.attachedToClass, chunter.class.ChatMessage)) {
intlParamsNotLocalized = {
title: chunter.string.ThreadMessage
}