Chore: Limit subject length to 100 characters in browser notifications

This commit is contained in:
Ralph Slooten
2026-03-10 11:31:21 +13:00
parent f40911c580
commit 140633718c

View File

@@ -77,7 +77,8 @@ export default {
if (!this.pauseNotifications) {
this.pauseNotifications = true;
const from = response.Data.From !== null ? response.Data.From.Address : "[unknown]";
this.browserNotify("New mail from: " + from, response.Data.Subject);
const subject = String(response.Data.Subject ?? "").substring(0, 100);
this.browserNotify("New mail from: " + from, subject);
this.setMessageToast(response.Data);
// delay notifications by 2s
window.setTimeout(() => {