mirror of
https://github.com/element-hq/element-android
synced 2024-11-23 09:55:40 +03:00
Merge pull request #8457 from vector-im/feature/bca/fix_bad_device_list
fix always returning live devices for current user
This commit is contained in:
commit
df1641995e
2 changed files with 2 additions and 3 deletions
1
changelog.d/8457.bugfix
Normal file
1
changelog.d/8457.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fix: The device list screen from the member profile page was always showing the current user devices (rust crypto).
|
|
@ -360,9 +360,7 @@ internal class RustCryptoService @Inject constructor(
|
|||
}
|
||||
|
||||
override fun getLiveCryptoDeviceInfo(userIds: List<String>): LiveData<List<CryptoDeviceInfo>> {
|
||||
return olmMachine.getLiveDevices(listOf(myUserId)).map {
|
||||
it.filter { it.userId == myUserId }
|
||||
}
|
||||
return olmMachine.getLiveDevices(userIds)
|
||||
}
|
||||
|
||||
override fun getLiveCryptoDeviceInfoWithId(deviceId: String): LiveData<Optional<CryptoDeviceInfo>> {
|
||||
|
|
Loading…
Reference in a new issue