fix(core)!: correctly type Dialog.isMuted
This commit is contained in:
parent
0ebd305797
commit
1b1ad3a0f7
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue