From d724838a3d80add2dfcd02ec4b972a7d9510a2c8 Mon Sep 17 00:00:00 2001 From: Erwan Leboucher Date: Sun, 26 Jul 2026 13:20:19 +0200 Subject: [PATCH] refactor(notifications): store only as much message body as the preview shows --- src/app/utils/localNotifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/utils/localNotifications.ts b/src/app/utils/localNotifications.ts index 3b357bfc2..7aa006284 100644 --- a/src/app/utils/localNotifications.ts +++ b/src/app/utils/localNotifications.ts @@ -12,7 +12,7 @@ export type StoredNotification = { dismissed?: boolean; }; -export const MAX_BODY_LENGTH = 500; +export const MAX_BODY_LENGTH = 120; // HTML cannot be sliced without breaking tags, so oversized messages lose it. // Ciphertext is dropped: multi-KB, shares the session's localStorage budget, and