Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@
topic: description
})

await client.createDoc(notification.class.DocNotifyContext, space._id, {
user: account._id,
objectId: channelId,
objectClass: chunter.class.Channel,
objectSpace: core.space.Space,
isPinned: false
})

openChannel(channelId, chunter.class.Channel)
}

Expand Down
4 changes: 2 additions & 2 deletions server-plugins/notification-resources/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down