Fix calculatedAtLevel definition

This commit is contained in:
Travis Ralston 2020-07-30 08:41:51 -06:00
parent 7f404b0fe5
commit ad7c94917d
4 changed files with 20 additions and 5 deletions

View file

@ -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") {