mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 02:55:23 +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
|
// 1st case: you are part of the removed members
|
||||||
return if (userPublicKey in updateData.updatedMembers) {
|
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
|
else Phrase.from(context, R.string.groupRemovedYou) // You were forced to leave
|
||||||
.put(GROUP_NAME_KEY, updateData.groupName)
|
.put(GROUP_NAME_KEY, updateData.groupName)
|
||||||
.format()
|
.format()
|
||||||
@ -151,7 +151,7 @@ object UpdateMessageBuilder {
|
|||||||
|
|
||||||
// --- Group members left ---
|
// --- Group members left ---
|
||||||
is UpdateMessageData.Kind.GroupMemberLeft -> {
|
is UpdateMessageData.Kind.GroupMemberLeft -> {
|
||||||
if (isOutgoing) context.getString(R.string.groupMemberYouLeft)
|
if (isOutgoing) context.getText(R.string.groupMemberYouLeft)
|
||||||
else {
|
else {
|
||||||
when (updateData.updatedMembers.size) {
|
when (updateData.updatedMembers.size) {
|
||||||
0 -> {
|
0 -> {
|
||||||
@ -237,18 +237,18 @@ object UpdateMessageBuilder {
|
|||||||
|
|
||||||
fun buildDataExtractionMessage(context: Context,
|
fun buildDataExtractionMessage(context: Context,
|
||||||
kind: DataExtractionNotificationInfoMessage.Kind,
|
kind: DataExtractionNotificationInfoMessage.Kind,
|
||||||
senderId: String? = null): String {
|
senderId: String? = null): CharSequence {
|
||||||
|
|
||||||
val senderName = if (senderId != null) getSenderName(senderId) else context.getString(R.string.unknown)
|
val senderName = if (senderId != null) getSenderName(senderId) else context.getString(R.string.unknown)
|
||||||
|
|
||||||
return when (kind) {
|
return when (kind) {
|
||||||
SCREENSHOT -> Phrase.from(context, R.string.screenshotTaken)
|
SCREENSHOT -> Phrase.from(context, R.string.screenshotTaken)
|
||||||
.put(NAME_KEY, senderName)
|
.put(NAME_KEY, senderName)
|
||||||
.format().toString()
|
.format()
|
||||||
|
|
||||||
MEDIA_SAVED -> Phrase.from(context, R.string.attachmentsMediaSaved)
|
MEDIA_SAVED -> Phrase.from(context, R.string.attachmentsMediaSaved)
|
||||||
.put(NAME_KEY, senderName)
|
.put(NAME_KEY, senderName)
|
||||||
.format().toString()
|
.format()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user