mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-27 18:13:08 +01:00
Fix / device check was not reading up to date trust
This commit is contained in:
parent
aa238775c6
commit
f39938d17d
@ -152,7 +152,11 @@ internal class UpdateTrustWorker(context: Context,
|
||||
?.devices
|
||||
|
||||
val trustMap = devicesEntities?.map { device ->
|
||||
device to crossSigningService.checkDeviceTrust(myCrossSigningInfo, otherInfos[it], CryptoMapper.mapToModel(device))
|
||||
// get up to date from DB has could have been updated
|
||||
val otherInfo = realm.where(CrossSigningInfoEntity::class.java)
|
||||
.equalTo(CrossSigningInfoEntityFields.USER_ID, it)
|
||||
.findFirst()?.let { mapCrossSigningInfoEntity(it) }
|
||||
device to crossSigningService.checkDeviceTrust(myCrossSigningInfo, otherInfo, CryptoMapper.mapToModel(device))
|
||||
}?.toMap()
|
||||
|
||||
// Update trust if needed
|
||||
|
Loading…
Reference in New Issue
Block a user