Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

Commit d5e3836

Browse files
Merge pull request #1689 from oxen-io/release/1.20.2
Release/1.20.2
2 parents cc67ea1 + 9ffaed5 commit d5e3836

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ configurations.forEach {
1313
it.exclude module: "commons-logging"
1414
}
1515

16-
def canonicalVersionCode = 383
17-
def canonicalVersionName = "1.20.1"
16+
def canonicalVersionCode = 384
17+
def canonicalVersionName = "1.20.2"
1818

1919
def postFixSize = 10
2020
def abiPostFix = ['armeabi-v7a' : 1,

app/src/main/java/org/thoughtcrime/securesms/conversation/v2/dialogs/DownloadDialog.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ class DownloadDialog(private val recipient: Recipient) : DialogFragment() {
3737
val explanation = Phrase.from(context, R.string.attachmentsAutoDownloadModalDescription)
3838
.put(CONVERSATION_NAME_KEY, recipient.toShortString())
3939
.format()
40-
val spannable = SpannableStringBuilder(explanation)
41-
42-
val startIndex = explanation.indexOf(name)
43-
spannable.setSpan(StyleSpan(Typeface.BOLD), startIndex, startIndex + name.count(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE)
44-
text(spannable)
40+
text(explanation)
4541

4642
button(R.string.download, R.string.AccessibilityId_download) { trust() }
4743
cancelButton { dismiss() }

app/src/main/java/org/thoughtcrime/securesms/database/Storage.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,8 +1582,11 @@ open class Storage(
15821582
DatabaseComponent.get(context).recipientDatabase().setApproved(recipient, approved)
15831583
if (recipient.isLocalNumber || !recipient.isContactRecipient) return
15841584
configFactory.contacts?.upsertContact(recipient.address.serialize()) {
1585+
// if the contact wasn't approved before but is approved now, make sure it's visible
1586+
if(approved && !this.approved) this.priority = PRIORITY_VISIBLE
1587+
1588+
// update approval
15851589
this.approved = approved
1586-
this.priority = PRIORITY_VISIBLE
15871590
}
15881591
}
15891592

0 commit comments

Comments
 (0)