UBERF-7016: Hide channels without any activity long time (#6176)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2024-07-30 14:52:09 +07:00
committed by Andrey Sobolev
parent 90815f407b
commit 0ad51a5483
28 changed files with 743 additions and 346 deletions
+1 -3
View File
@@ -95,8 +95,7 @@ export async function OnMessageCreate (tx: Tx, control: TriggerControl): Promise
// )
res.push(
control.txFactory.createTxUpdateDoc(doc._class, doc.space, doc._id, {
lastUpdateTimestamp: tx.modifiedOn,
hidden: false
lastUpdateTimestamp: tx.modifiedOn
})
)
}
@@ -106,7 +105,6 @@ export async function OnMessageCreate (tx: Tx, control: TriggerControl): Promise
user: tx.modifiedBy,
attachedTo: channel._id,
attachedToClass: channel._class,
hidden: false,
lastUpdateTimestamp: tx.modifiedOn
// TODO: push inbox notification
// txes: [