Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarino Faggiana <m.faggiana@twsweb.it>2018-08-04 12:19:27 +0300
committerMarino Faggiana <marinofaggiana@mbp-di-marino.homenet.telecomitalia.it>2018-08-04 12:19:27 +0300
commitd37abd85e99f6d451ea6ccdc6695bef9abf35219 (patch)
treef174ffd13675e030a9d6982f34e87ef1f1b412df /Notification Service Extension
parenta2d2d5acd0379e356c9f882ad07bc08e9c33fab6 (diff)
dev push notification
Diffstat (limited to 'Notification Service Extension')
-rw-r--r--Notification Service Extension/NotificationService.swift6
1 files changed, 5 insertions, 1 deletions
diff --git a/Notification Service Extension/NotificationService.swift b/Notification Service Extension/NotificationService.swift
index 4685e516e..b227c40a4 100644
--- a/Notification Service Extension/NotificationService.swift
+++ b/Notification Service Extension/NotificationService.swift
@@ -59,7 +59,11 @@ class NotificationService: UNNotificationServiceExtension {
do {
let json = try JSONSerialization.jsonObject(with: data) as! [String:AnyObject]
if let app = json["app"] as? String {
- bestAttemptContent.title = app.uppercased()
+ if app == "spreed" {
+ bestAttemptContent.title = "Nextcloud Talk"
+ } else {
+ bestAttemptContent.title = app.capitalized
+ }
}
if let subject = json["subject"] as? String {
bestAttemptContent.body = subject