diff --git a/plugins/chunter-resources/src/components/chat/create/CreateChannel.svelte b/plugins/chunter-resources/src/components/chat/create/CreateChannel.svelte index ca7cdddffea..f9dfcab2bd5 100644 --- a/plugins/chunter-resources/src/components/chat/create/CreateChannel.svelte +++ b/plugins/chunter-resources/src/components/chat/create/CreateChannel.svelte @@ -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) } diff --git a/server-plugins/notification-resources/src/utils.ts b/server-plugins/notification-resources/src/utils.ts index db16ff0b489..4c864a4fb9a 100644 --- a/server-plugins/notification-resources/src/utils.ts +++ b/server-plugins/notification-resources/src/utils.ts @@ -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) {