Add subtext for account to message notifications too

Stephen Paul Weber created

Might not always show depending on style.

Change summary

src/main/java/eu/siacs/conversations/services/NotificationService.java | 3 
1 file changed, 3 insertions(+)

Detailed changes

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);