mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 05:25:00 +02:00
Fix extra tg notifications (#6362)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -151,7 +151,7 @@ export function isAllowed (
|
||||
notificationControl: NotificationProviderControl
|
||||
): boolean {
|
||||
const providerSetting = (notificationControl.byProvider.get(provider._id) ?? []).find(
|
||||
({ attachedTo, modifiedBy }) => modifiedBy === receiver
|
||||
({ createdBy }) => createdBy === receiver
|
||||
)
|
||||
|
||||
if (providerSetting !== undefined && !providerSetting.enabled) {
|
||||
@@ -168,7 +168,7 @@ export function isAllowed (
|
||||
return false
|
||||
}
|
||||
const setting = (notificationControl.settingsByProvider.get(provider._id) ?? []).find(
|
||||
(it) => it.type === type._id && it.modifiedBy === receiver
|
||||
(it) => it.type === type._id && it.createdBy === receiver
|
||||
)
|
||||
|
||||
if (setting !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user