Fix condition
This commit is contained in:
parent
f5ae6630bd
commit
823b7c3269
|
@ -70,7 +70,7 @@ export class NotificationEntityService implements OnModuleInit {
|
|||
): Promise<Packed<'Notification'>|null> {
|
||||
const notification = src;
|
||||
|
||||
if (options.checkValidNotifier && !(await this.#isValidNotifier(notification, meId))) return null;
|
||||
if (options.checkValidNotifier !== false && !(await this.#isValidNotifier(notification, meId))) return null;
|
||||
|
||||
const noteIfNeed = NOTE_REQUIRED_NOTIFICATION_TYPES.has(notification.type) && 'noteId' in notification ? (
|
||||
hint?.packedNotes != null
|
||||
|
@ -170,7 +170,7 @@ export class NotificationEntityService implements OnModuleInit {
|
|||
): Promise<Packed<'Notification'>|null> {
|
||||
const notification = src;
|
||||
|
||||
if ( options.checkValidNotifier && !(await this.#isValidNotifier(notification, meId))) return null;
|
||||
if ( options.checkValidNotifier !== false && !(await this.#isValidNotifier(notification, meId))) return null;
|
||||
|
||||
const noteIfNeed = NOTE_REQUIRED_GROUPED_NOTIFICATION_TYPES.has(notification.type) && 'noteId' in notification ? (
|
||||
hint?.packedNotes != null
|
||||
|
|
Loading…
Reference in a new issue