From 1b1ad3a0f767647718f77a1eaed776f7d47b04c1 Mon Sep 17 00:00:00 2001 From: alina sireneva Date: Mon, 8 Jul 2024 13:40:52 +0300 Subject: [PATCH] fix(core)!: correctly type Dialog.isMuted --- packages/core/src/highlevel/types/messages/dialog.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/core/src/highlevel/types/messages/dialog.ts b/packages/core/src/highlevel/types/messages/dialog.ts index bf20b342..d8d4027f 100644 --- a/packages/core/src/highlevel/types/messages/dialog.ts +++ b/packages/core/src/highlevel/types/messages/dialog.ts @@ -176,10 +176,12 @@ export class Dialog { } /** - * Whether this dialog is muted + * Whether this dialog is muted. + * + * If `null`, the default account-level setting should be used. */ - get isMuted(): boolean { - return this.raw.notifySettings.silent! + get isMuted(): boolean | null { + return this.raw.notifySettings.silent ?? null } /**