From 37e43a41e4ebe9c64c7bc16f4a01d746f1c64c4b Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 18 Oct 2024 15:16:44 +0300 Subject: [PATCH] web/notifications: increase max length --- web/src/api/statestore/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/api/statestore/main.ts b/web/src/api/statestore/main.ts index 17a28aa..7bb1185 100644 --- a/web/src/api/statestore/main.ts +++ b/web/src/api/statestore/main.ts @@ -142,8 +142,8 @@ export class StateStore { return } let body = evt.content.body - if (body.length > 200) { - body = body.slice(0, 150) + " […]" + if (body.length > 400) { + body = body.slice(0, 350) + " […]" } const memberEvt = room.getStateEvent("m.room.member", evt.sender) const icon = `${getMediaURL(memberEvt?.content.avatar_url)}&image_auth=${this.imageAuthToken}`