forked from Ivasoft/mattermost-mobile
[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:
committed by
Miguel Alatzar
parent
3adec36c95
commit
bb9f96f409
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user