Skip to content

Commit df16419

Browse files
authored
Merge pull request #8457 from vector-im/feature/bca/fix_bad_device_list
fix always returning live devices for current user
2 parents bb09bee + 19dc812 commit df16419

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

changelog.d/8457.bugfix

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix: The device list screen from the member profile page was always showing the current user devices (rust crypto).

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

+1-3
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>> {

0 commit comments

Comments
 (0)