Make more of the codebase conform to strict types (#10857)

This commit is contained in:
Michael Telatynski
2023-05-16 14:25:43 +01:00
committed by GitHub
parent 7f017a84c2
commit 6a3f59cc76
45 changed files with 127 additions and 121 deletions
+3 -1
View File
@@ -132,7 +132,7 @@ class NotifierClass {
let msg = this.notificationMessageForEvent(ev);
if (!msg) return;
let title;
let title: string | undefined;
if (!ev.sender || room.name === ev.sender.name) {
title = room.name;
// notificationMessageForEvent includes sender, but we already have the sender here
@@ -153,6 +153,8 @@ class NotifierClass {
}
}
if (!title) return;
if (!this.isBodyEnabled()) {
msg = "";
}