[MM-14871] Fix extraction of sender name for push notifications (#2691)

* Return empty string for sender name when not found
This commit is contained in:
Miguel Alatzar
2019-04-03 18:39:28 -07:00
committed by Miguel Alatzar
parent 3adec36c95
commit bb9f96f409

View File

@@ -363,7 +363,12 @@ public class CustomPushNotification extends PushNotification {
return channelName;
}
return message.split(":")[0];
String senderName = message.split(":")[0];
if (senderName != message) {
return senderName;
}
return " ";
}
private String removeSenderFromMessage(String message) {