From a27512cee465c6d0074fe84516176f272943b94c Mon Sep 17 00:00:00 2001 From: M57 <41645758+Hy4ri@users.noreply.github.com> Date: Tue, 23 Jun 2026 11:42:15 +0300 Subject: [PATCH] fix: hide chat notification content on lock screen (#333) Set `NotificationCompat.VISIBILITY_PRIVATE` on the chat reply notification builder. This prevents the first 100 characters of a message from leaking to the lock screen, addressing security concern SEC-09. Resolves #262 --- .../m57/hermescontrol/notification/ChatNotificationService.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/m57/hermescontrol/notification/ChatNotificationService.kt b/app/src/main/java/com/m57/hermescontrol/notification/ChatNotificationService.kt index 6424028c..79f30747 100644 --- a/app/src/main/java/com/m57/hermescontrol/notification/ChatNotificationService.kt +++ b/app/src/main/java/com/m57/hermescontrol/notification/ChatNotificationService.kt @@ -113,6 +113,7 @@ class ChatNotificationService : Service() { .setContentText(text) .setStyle(NotificationCompat.BigTextStyle().bigText(text)) .setPriority(NotificationCompat.PRIORITY_HIGH) + .setVisibility(NotificationCompat.VISIBILITY_PRIVATE) .setAutoCancel(true) .setContentIntent(buildContentIntent(sessionId))