From fb1f5df234de01041f6d02e1a5327871dc6d7263 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Wed, 23 Oct 2024 14:58:32 +0200 Subject: [PATCH] fix ticker line --- .../securesms/notifications/NotificationCenter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/thoughtcrime/securesms/notifications/NotificationCenter.java b/src/main/java/org/thoughtcrime/securesms/notifications/NotificationCenter.java index 112e0a549..8f6d92545 100644 --- a/src/main/java/org/thoughtcrime/securesms/notifications/NotificationCenter.java +++ b/src/main/java/org/thoughtcrime/securesms/notifications/NotificationCenter.java @@ -403,11 +403,10 @@ public class NotificationCenter { // if privacy allows, for better accessibility, // prepend the sender in the ticker also for one-to-one chats (for group-chats, this is already done) - String tickerLine = line; if (!dcChat.isMultiUser() && privacy.isDisplayContact()) { line = dcMsg.getSenderName(dcContext.getContact(dcMsg.getFromId()), false) + ": " + line; } - builder.setTicker(tickerLine); + builder.setTicker(line); // set sound, vibrate, led for systems that do not have notification channels if (!notificationChannelsSupported()) {