2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-09-02 15:15:09 +00:00

Don't use sender if not there

Reviewed-by: Aleix Pol
This commit is contained in:
Albert Vaca Cintora
2019-10-25 20:08:39 +02:00
parent b1c6df405c
commit dd5fb954bc

View File

@@ -371,7 +371,7 @@ public class NotificationsPlugin extends Plugin implements NotificationReceiver.
for (Parcelable p : ms) { for (Parcelable p : ms) {
Bundle m = (Bundle) p; Bundle m = (Bundle) p;
if (isGroupConversation) { if (isGroupConversation && m.containsKey("sender")) {
messagesBuilder.append(m.get("sender")); messagesBuilder.append(m.get("sender"));
messagesBuilder.append(": "); messagesBuilder.append(": ");
} }