Set bodyForRemoteAlerts as default body.

Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Ivan Sein 2020-07-01 09:34:47 +02:00
Родитель b95d50bbe2
Коммит c5168e792c
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -50,7 +50,7 @@
NSString *decryptedMessage = [[NCSettingsController sharedInstance] decryptPushNotification:message withDevicePrivateKey:pushNotificationPrivateKey];
if (decryptedMessage) {
NCPushNotification *pushNotification = [NCPushNotification pushNotificationFromDecryptedString:decryptedMessage withAccountId:account.accountId];
self.bestAttemptContent.body = pushNotification.subject;
self.bestAttemptContent.body = pushNotification.bodyForRemoteAlerts;
// Create title and body structure if there is a new line in the subject
NSArray* components = [pushNotification.subject componentsSeparatedByString:@"\n"];
if (components.count > 1) {