feat: localise emoji reacts notification

pull/638/head
ryanzhao
parent b9d5009c3d
commit 0aed17c6b5

@ -669,3 +669,4 @@
"EMOJI_CATEGORY_SYMBOLS_NAME" = "Symbols";
/* The name for the emoji category 'Travel & Places' */
"EMOJI_CATEGORY_TRAVEL_NAME" = "Travel & Places";
"EMOJI_REACTS_NOTIFICATION" = "%@ reacts to a message with %@";

@ -313,7 +313,7 @@ public class NotificationPresenter: NSObject, NotificationsProtocol {
let senderName = Storage.shared.getContact(with: sender, using: transaction)?.displayName(for: context) ?? sender
let notificationTitle = "Session"
var notificationBody = "\(senderName) reacts to a message with \(emoji)"
var notificationBody = String(format: "EMOJI_REACTS_NOTIFICATION".localized(), senderName, emoji)
switch previewType {
case .namePreview: break
default: notificationBody = NotificationStrings.incomingMessageBody

Loading…
Cancel
Save