fix(core)!: correctly type Dialog.isMuted

This commit is contained in:
alina 🌸 2024-07-08 13:40:52 +03:00
parent 0ebd305797
commit 1b1ad3a0f7
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -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 { get isMuted(): boolean | null {
return this.raw.notifySettings.silent! return this.raw.notifySettings.silent ?? null
} }
/** /**