From 092e4db1a2d977ef64c7807fd9ef24fa9071e560 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Mon, 26 Jun 2023 18:33:46 +0200 Subject: [PATCH] Render emote notifications like in the timeline (#1152) Fixes: #1117 --- .../Services/Notification/Proxy/NotificationItemProxy.swift | 2 +- changelog.d/1117.feature | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/1117.feature diff --git a/ElementX/Sources/Services/Notification/Proxy/NotificationItemProxy.swift b/ElementX/Sources/Services/Notification/Proxy/NotificationItemProxy.swift index 8d2a57be5..251edefc8 100644 --- a/ElementX/Sources/Services/Notification/Proxy/NotificationItemProxy.swift +++ b/ElementX/Sources/Services/Notification/Proxy/NotificationItemProxy.swift @@ -360,7 +360,7 @@ extension NotificationItemProxyProtocol { private func processEmote(content: EmoteMessageContent, mediaProvider: MediaProviderProtocol?) async throws -> UNMutableNotificationContent { let notification = try await processCommon(mediaProvider: mediaProvider) - notification.body = "🫥 " + content.body + notification.body = L10n.commonEmote(senderDisplayName ?? roomDisplayName, content.body) return notification } diff --git a/changelog.d/1117.feature b/changelog.d/1117.feature new file mode 100644 index 000000000..28992490c --- /dev/null +++ b/changelog.d/1117.feature @@ -0,0 +1 @@ +Render emote notifications like in the timeline