Skip to content

Commit b9cc1b6

Browse files
committed
Merge branch 'release/1.6.1' into main
2 parents 3b9dc50 + 93e2d7d commit b9cc1b6

File tree

32 files changed

+157
-115
lines changed

32 files changed

+157
-115
lines changed

CHANGES.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
Changes in Element v1.6.1 (2023-05-25)
2+
======================================
3+
4+
Corrective release for 1.6.0
5+
6+
Bugfixes 🐛
7+
----------
8+
- Allow stateloss on verification dialogfragment ([#8439](https://github.com/vector-im/element-android/issues/8439))
9+
- Fix: Update verification popup text when a re-verification is needed after rust migration (read only sessions) ([#8445](https://github.com/vector-im/element-android/issues/8445))
10+
- Fix several performance issues causing app non responsive issues. ([#8454](https://github.com/vector-im/element-android/issues/8454))
11+
- Fix: The device list screen from the member profile page was always showing the current user devices (rust crypto). ([#8457](https://github.com/vector-im/element-android/issues/8457))
12+
13+
Other changes
14+
-------------
15+
- Remove UI option to manually verify a specific device of another user (deprecated behaviour) ([#8458](https://github.com/vector-im/element-android/issues/8458))
16+
17+
118
Changes in Element v1.6.0 (2023-05-17)
219
======================================
320

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ buildscript {
2828
classpath 'com.google.gms:google-services:4.3.15'
2929
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:4.0.0.2929'
3030
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.6'
31-
classpath "com.likethesalad.android:stem-plugin:2.4.0"
31+
classpath "com.likethesalad.android:stem-plugin:2.4.1"
3232
classpath 'org.owasp:dependency-check-gradle:8.2.1'
3333
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.8.10"
3434
classpath "org.jetbrains.kotlinx:kotlinx-knit:0.4.0"

dependencies.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ ext.libs = [
101101
],
102102
element : [
103103
'opusencoder' : "io.element.android:opusencoder:1.1.0",
104-
'wysiwyg' : "io.element.android:wysiwyg:1.2.2"
104+
'wysiwyg' : "io.element.android:wysiwyg:2.2.1"
105105
],
106106
squareup : [
107107
'moshi' : "com.squareup.moshi:moshi:$moshi",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Main changes in this version: Element Android is now using the Crypto Rust SDK.
2+
Full changelog: https://github.com/vector-im/element-android/releases

library/ui-strings/src/main/res/values/strings.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2446,6 +2446,7 @@
24462446
</plurals>
24472447

24482448
<string name="crosssigning_verify_this_session">Verify this device</string>
2449+
<string name="crosssigning_verify_after_update">App updated</string>
24492450
<string name="crosssigning_cannot_verify_this_session">Unable to verify this device</string>
24502451
<string name="crosssigning_cannot_verify_this_session_desc">You won’t be able to access encrypted message history. Reset your Secure Message Backup and verification keys to start fresh.</string>
24512452

@@ -2465,7 +2466,9 @@
24652466

24662467
<string name="verification_profile_device_verified_because">This session is trusted for secure messaging because %1$s (%2$s) verified it:</string>
24672468
<string name="verification_profile_device_new_signing">%1$s (%2$s) signed in using a new session:</string>
2468-
<string name="verification_profile_device_untrust_info">Until this user trusts this session, messages sent to and from it are labeled with warnings. Alternatively, you can manually verify it.</string>
2469+
<!-- TODO TO BE REMOVED -->
2470+
<string tools:ignore="UnusedResources" name="verification_profile_device_untrust_info">Until this user trusts this session, messages sent to and from it are labeled with warnings. Alternatively, you can manually verify it.</string>
2471+
<string name="verification_profile_other_device_untrust_info">Until this user trusts this session, messages sent to and from it are labeled with warnings.</string>
24692472

24702473

24712474
<string name="initialize_cross_signing">Initialize CrossSigning</string>
@@ -2707,6 +2710,7 @@
27072710
<string tools:ignore="UnusedResources" name="crosssigning_verify_session">Verify login</string>
27082711
<string name="cross_signing_verify_by_emoji">Interactively Verify by Emoji</string>
27092712
<string name="confirm_your_identity">Confirm your identity by verifying this login from one of your other sessions, granting it access to encrypted messages.</string>
2713+
<string name="confirm_your_identity_after_update">Secure messaging has been improved with the latest update. Please re-verify your device.</string>
27102714
<string name="confirm_your_identity_quad_s">Confirm your identity by verifying this login, granting it access to encrypted messages.</string>
27112715

27122716
<string name="failed_to_initialize_cross_signing">Failed to set up Cross Signing</string>

matrix-sdk-android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ android {
6363
// that the app's state is completely cleared between tests.
6464
testInstrumentationRunnerArguments clearPackageData: 'true'
6565

66-
buildConfigField "String", "SDK_VERSION", "\"1.6.0\""
66+
buildConfigField "String", "SDK_VERSION", "\"1.6.1\""
6767

6868
buildConfigField "String", "GIT_SDK_REVISION", "\"${gitRevision()}\""
6969
buildConfigField "String", "GIT_SDK_REVISION_UNIX_DATE", "\"${gitRevisionUnixDate()}\""

matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/read/SetReadMarkersTask.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ package org.matrix.android.sdk.internal.session.room.read
1818

1919
import com.zhuinden.monarchy.Monarchy
2020
import io.realm.Realm
21+
import kotlinx.coroutines.withContext
22+
import org.matrix.android.sdk.api.MatrixCoroutineDispatchers
2123
import org.matrix.android.sdk.api.session.events.model.LocalEcho
2224
import org.matrix.android.sdk.api.session.homeserver.HomeServerCapabilitiesService
2325
import org.matrix.android.sdk.internal.database.model.RoomSummaryEntity
@@ -64,9 +66,10 @@ internal class DefaultSetReadMarkersTask @Inject constructor(
6466
private val globalErrorReceiver: GlobalErrorReceiver,
6567
private val clock: Clock,
6668
private val homeServerCapabilitiesService: HomeServerCapabilitiesService,
69+
private val coroutineDispatchers: MatrixCoroutineDispatchers,
6770
) : SetReadMarkersTask {
6871

69-
override suspend fun execute(params: SetReadMarkersTask.Params) {
72+
override suspend fun execute(params: SetReadMarkersTask.Params) = withContext(coroutineDispatchers.io) {
7073
val markers = mutableMapOf<String, String>()
7174
Timber.v("Execute set read marker with params: $params")
7275
val latestSyncedEventId = latestSyncedEventId(params.roomId)

matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/RustCryptoService.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,7 @@ internal class RustCryptoService @Inject constructor(
360360
}
361361

362362
override fun getLiveCryptoDeviceInfo(userIds: List<String>): LiveData<List<CryptoDeviceInfo>> {
363-
return olmMachine.getLiveDevices(listOf(myUserId)).map {
364-
it.filter { it.userId == myUserId }
365-
}
363+
return olmMachine.getLiveDevices(userIds)
366364
}
367365

368366
override fun getLiveCryptoDeviceInfoWithId(deviceId: String): LiveData<Optional<CryptoDeviceInfo>> {

matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/store/db/migration/rust/ExtractUtils.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ fun RealmToMigrate.getPickledAccount(pickleKey: ByteArray): MigrationData {
7171
val userKey = metadataEntity.xSignUserPrivateKey
7272
val selfSignedKey = metadataEntity.xSignSelfSignedPrivateKey
7373

74+
Timber.i("## Migration: has private MSK ${masterKey.isNullOrBlank().not()}")
75+
Timber.i("## Migration: has private USK ${userKey.isNullOrBlank().not()}")
76+
Timber.i("## Migration: has private SSK ${selfSignedKey.isNullOrBlank().not()}")
77+
7478
val userId = metadataEntity.userId
7579
?: throw java.lang.IllegalArgumentException("Rust db migration: userId is null")
7680
val deviceId = metadataEntity.deviceId
@@ -79,6 +83,8 @@ fun RealmToMigrate.getPickledAccount(pickleKey: ByteArray): MigrationData {
7983
val backupVersion = metadataEntity.backupVersion
8084
val backupRecoveryKey = metadataEntity.keyBackupRecoveryKey
8185

86+
Timber.i("## Migration: has private backup key ${backupRecoveryKey != null} for version $backupVersion")
87+
8288
val isOlmAccountShared = metadataEntity.deviceKeysSentToServer
8389

8490
val olmAccount = metadataEntity.getOlmAccount()

tools/release/releaseScript.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ fi
267267

268268
printf "\n================================================================================\n"
269269
printf "Wait for the GitHub action https://github.com/vector-im/element-android/actions/workflows/build.yml?query=branch%%3Amain to build the 'main' branch.\n"
270-
read -p "After GHA is finished, please enter the artifact URL (for 'vector-gplay-rustCrypto-release-unsigned'): " artifactUrl
270+
read -p "After GHA is finished, please enter the artifact URL (for 'vector-gplay-release-unsigned'): " artifactUrl
271271

272272
printf "\n================================================================================\n"
273273
printf "Downloading the artifact...\n"
@@ -290,7 +290,7 @@ set -e
290290
printf "\n================================================================================\n"
291291
printf "Unzipping the artifact...\n"
292292

293-
unzip ${targetPath}/vector-gplay-rustCrypto-release-unsigned.zip -d ${targetPath}
293+
unzip ${targetPath}/vector-gplay-release-unsigned.zip -d ${targetPath}
294294

295295
# Flatten folder hierarchy
296296
mv ${targetPath}/gplayRustCrypto/release/* ${targetPath}

0 commit comments

Comments
 (0)