[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:
parent
3adec36c95
commit
bb9f96f409
1 changed files with 6 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue