Fix regressions around media uploads failing and causing soft crashes (#9549)

This commit is contained in:
Michael Telatynski
2022-11-07 11:56:43 +00:00
committed by GitHub
parent be5a8ca3b9
commit 77764d80bc
6 changed files with 17 additions and 218 deletions
+2 -2
View File
@@ -161,8 +161,8 @@ export const Notifier = {
return null;
}
if (!content.url) {
logger.warn(`${roomId} has custom notification sound event, but no url key`);
if (typeof content.url !== "string") {
logger.warn(`${roomId} has custom notification sound event, but no url string`);
return null;
}