Code quality

This commit is contained in:
Benoit Marty 2019-10-22 12:26:56 +02:00
parent 3dc5ef54ab
commit fea54952d3
1 changed files with 2 additions and 2 deletions

View File

@ -38,9 +38,9 @@ internal class EnsureOlmSessionsForUsersAction @Inject constructor(private val o
devices.filter {
// Don't bother setting up session to ourself
it.identityKey() != olmDevice.deviceCurve25519Key &&
it.identityKey() != olmDevice.deviceCurve25519Key
// Don't bother setting up sessions with blocked users
!it.isVerified
&& !it.isVerified
}
}
return ensureOlmSessionsForDevicesAction.handle(devicesByUser)