mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-10 19:57:43 +02:00
UBERF-7016: Hide channels without any activity long time (#6176)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -73,7 +73,7 @@ export class InboxNotificationsClientImpl implements InboxNotificationsClient {
|
||||
return inboxNotifications.reduce((result, notification) => {
|
||||
const notifyContext = notifyContexts.find(({ _id }) => _id === notification.docNotifyContext)
|
||||
|
||||
if (notifyContext === undefined || notifyContext.hidden) {
|
||||
if (notifyContext === undefined) {
|
||||
return result
|
||||
}
|
||||
|
||||
@@ -207,13 +207,6 @@ export class InboxNotificationsClientImpl implements InboxNotificationsClient {
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
await client.createDoc(notification.class.DocNotifyContext, doc.space, {
|
||||
attachedTo: _id,
|
||||
attachedToClass: _class,
|
||||
user: getCurrentAccount()._id,
|
||||
hidden: true
|
||||
})
|
||||
}
|
||||
|
||||
async readNotifications (client: TxOperations, ids: Array<Ref<InboxNotification>>): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user