diff --git a/app/src/main/java/org/thoughtcrime/securesms/notifications/v2/NotificationItem.kt b/app/src/main/java/org/thoughtcrime/securesms/notifications/v2/NotificationItem.kt index 98b553ab91..1d28ab6609 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/notifications/v2/NotificationItem.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/notifications/v2/NotificationItem.kt @@ -200,7 +200,7 @@ class MessageNotification(threadRecipient: Recipient, record: MessageRecord) : N ThreadBodyUtil.getFormattedBodyFor(context, record).body } else if (record.isStoryReaction()) { ThreadBodyUtil.getFormattedBodyFor(context, record).body - } else if (record.isPaymentNotification()) { + } else if (record.isPaymentNotification) { ThreadBodyUtil.getFormattedBodyFor(context, record).body } else { MentionUtil.updateBodyWithDisplayNames(context, record) ?: "" @@ -310,6 +310,8 @@ class ReactionNotification(threadRecipient: Recipient, record: MessageRecord, va context.getString(R.string.MessageNotifier_reacted_s_to_your_sticker, EMOJI_REPLACEMENT_STRING) } else if (record.isMms && record.isViewOnce) { context.getString(R.string.MessageNotifier_reacted_s_to_your_view_once_media, EMOJI_REPLACEMENT_STRING) + } else if (record.isPaymentNotification) { + context.getString(R.string.MessageNotifier_reacted_s_to_your_payment, EMOJI_REPLACEMENT_STRING) } else if (!bodyIsEmpty) { context.getString(R.string.MessageNotifier_reacted_s_to_s, EMOJI_REPLACEMENT_STRING, body) } else if (record.isMediaMessage() && MediaUtil.isVideoType(getMessageContentType((record as MmsMessageRecord)))) { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 33af96e95d..5063395bb9 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -2150,6 +2150,8 @@ Reacted %1$s to your file. Reacted %1$s to your audio. Reacted %1$s to your view-once media. + + Reacted %1$s to your payment. Reacted %1$s to your sticker. This message was deleted.