mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 10:35:19 +00:00
More bold fixing
This commit is contained in:
parent
5773f05a5c
commit
052f910d69
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user