From 052f910d69c453f847e5dbad9132a40f3e00126b Mon Sep 17 00:00:00 2001 From: ThomasSession Date: Thu, 29 Aug 2024 17:06:53 +1000 Subject: [PATCH] More bold fixing --- .../messaging/utilities/UpdateMessageBuilder.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libsession/src/main/java/org/session/libsession/messaging/utilities/UpdateMessageBuilder.kt b/libsession/src/main/java/org/session/libsession/messaging/utilities/UpdateMessageBuilder.kt index a910972dc7..1bb8ffbd29 100644 --- a/libsession/src/main/java/org/session/libsession/messaging/utilities/UpdateMessageBuilder.kt +++ b/libsession/src/main/java/org/session/libsession/messaging/utilities/UpdateMessageBuilder.kt @@ -95,7 +95,7 @@ object UpdateMessageBuilder { // 1st case: you are part of the removed members return if (userPublicKey in updateData.updatedMembers) { - if (isOutgoing) context.getString(R.string.groupMemberYouLeft) // You chose to leave + if (isOutgoing) context.getText(R.string.groupMemberYouLeft) // You chose to leave else Phrase.from(context, R.string.groupRemovedYou) // You were forced to leave .put(GROUP_NAME_KEY, updateData.groupName) .format() @@ -151,7 +151,7 @@ object UpdateMessageBuilder { // --- Group members left --- is UpdateMessageData.Kind.GroupMemberLeft -> { - if (isOutgoing) context.getString(R.string.groupMemberYouLeft) + if (isOutgoing) context.getText(R.string.groupMemberYouLeft) else { when (updateData.updatedMembers.size) { 0 -> { @@ -237,18 +237,18 @@ object UpdateMessageBuilder { fun buildDataExtractionMessage(context: Context, kind: DataExtractionNotificationInfoMessage.Kind, - senderId: String? = null): String { + senderId: String? = null): CharSequence { val senderName = if (senderId != null) getSenderName(senderId) else context.getString(R.string.unknown) return when (kind) { SCREENSHOT -> Phrase.from(context, R.string.screenshotTaken) .put(NAME_KEY, senderName) - .format().toString() + .format() MEDIA_SAVED -> Phrase.from(context, R.string.attachmentsMediaSaved) .put(NAME_KEY, senderName) - .format().toString() + .format() } }