From 1846ea0f812064a79ef91e145ff7f945e8a529e7 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 16 May 2023 15:40:19 -0500 Subject: [PATCH] Add subtext for account to message notifications too Might not always show depending on style. --- .../eu/siacs/conversations/services/NotificationService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/services/NotificationService.java b/src/main/java/eu/siacs/conversations/services/NotificationService.java index 95ab3b64b61ac8e4cb7e28dc43a08056d771e744..ff0d5577d9e9f51401f6c2d08f4e438f6ec567c3 100644 --- a/src/main/java/eu/siacs/conversations/services/NotificationService.java +++ b/src/main/java/eu/siacs/conversations/services/NotificationService.java @@ -1376,6 +1376,9 @@ public class NotificationService { mBuilder.setSmallIcon(R.drawable.ic_notification); mBuilder.setDeleteIntent(createDeleteIntent(conversation)); mBuilder.setContentIntent(createContentIntent(conversation)); + if (mXmppConnectionService.getAccounts().size() > 1) { + mBuilder.setSubText(conversation.getAccount().getJid().asBareJid().toString()); + } ShortcutInfoCompat info = mXmppConnectionService.getShortcutService().getShortcutInfoCompat(conversation.getContact()); mBuilder.setShortcutInfo(info);