Fix calculatedAtLevel definition
This commit is contained in:
parent
7f404b0fe5
commit
ad7c94917d
4 changed files with 20 additions and 5 deletions
|
@ -46,7 +46,12 @@ function getNotifier(): any { // TODO: [TS] Formal type that doesn't cause a cyc
|
|||
}
|
||||
|
||||
export class NotificationsEnabledController extends SettingController {
|
||||
public getValueOverride(level: SettingLevel, roomId: string, calculatedValue: any, calculatedAtLevel: any): any {
|
||||
public getValueOverride(
|
||||
level: SettingLevel,
|
||||
roomId: string,
|
||||
calculatedValue: any,
|
||||
calculatedAtLevel: SettingLevel,
|
||||
): any {
|
||||
if (!getNotifier().isPossible()) return false;
|
||||
|
||||
if (calculatedValue === null || calculatedAtLevel === "default") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue