зеркало из https://github.com/nextcloud/talk-ios.git
Set bodyForRemoteAlerts as default body.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Родитель
b95d50bbe2
Коммит
c5168e792c
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче