diff --git a/app/src/main/kotlin/com/wire/android/notification/MessageNotificationManager.kt b/app/src/main/kotlin/com/wire/android/notification/MessageNotificationManager.kt
index e1495e378d6..bf13ac2097e 100644
--- a/app/src/main/kotlin/com/wire/android/notification/MessageNotificationManager.kt
+++ b/app/src/main/kotlin/com/wire/android/notification/MessageNotificationManager.kt
@@ -256,13 +256,16 @@ class MessageNotificationManager
private fun NotificationMessage.intoStyledMessage(): NotificationCompat.MessagingStyle.Message {
val sender = Person.Builder()
.apply {
- if (this@intoStyledMessage !is NotificationMessage.ObfuscatedMessage) {
+ if (this@intoStyledMessage is NotificationMessage.ObfuscatedMessage) {
+ setName(context.getString(R.string.notification_obfuscated_message_title))
+ } else {
author?.name.also {
setName(it)
}
- }
- author?.image?.toBitmap()?.let {
- setIcon(IconCompat.createWithAdaptiveBitmap(it))
+
+ author?.image?.toBitmap()?.let {
+ setIcon(IconCompat.createWithAdaptiveBitmap(it))
+ }
}
}
.build()
@@ -273,7 +276,9 @@ class MessageNotificationManager
is NotificationMessage.ConnectionRequest -> italicTextFromResId(R.string.notification_connection_request)
is NotificationMessage.ConversationDeleted -> italicTextFromResId(R.string.notification_conversation_deleted)
is NotificationMessage.Knock -> italicTextFromResId(R.string.notification_knock)
- is NotificationMessage.ObfuscatedMessage -> italicTextFromResId(R.string.notification_obfuscated_message)
+ is NotificationMessage.ObfuscatedMessage -> italicTextFromResId(
+ R.string.notification_obfuscated_message_content
+ )
}
return NotificationCompat.MessagingStyle.Message(message, time, sender)
}
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index eff107fd5fd..948017e3bba 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1114,7 +1114,8 @@
"This stores anonymized troubleshooting information locally. "
"No application found to open downloads folder"
- Someone sent a Message
+ Someone
+ Sent a self-deleting message
License Information
Delete Account
No Application has been found to do Action