vector-im/element-ios/issues/5298 - Custom notification text for shared locations.

This commit is contained in:
Stefan Ceriu
2021-12-20 17:34:45 +02:00
committed by Stefan Ceriu
parent ebac08c309
commit 9b6960e0e7
2 changed files with 8 additions and 0 deletions

View File

@@ -401,6 +401,11 @@ class NotificationService: UNNotificationServiceExtension {
break
}
if event.location != nil {
notificationBody = NSString.localizedUserNotificationString(forKey: "LOCATION_FROM_USER", arguments: [eventSenderName])
break
}
switch msgType {
case kMXMessageTypeEmote:
notificationBody = NSString.localizedUserNotificationString(forKey: "ACTION_FROM_USER", arguments: [eventSenderName, messageContent as Any])