let instead of also

This commit is contained in:
Benoit Marty 2020-07-13 19:08:31 +02:00
parent 53f0b77fb0
commit 0f9e26efc5

View file

@ -116,11 +116,11 @@ internal class SyncResponseHandler @Inject constructor(@SessionDatabase private
tokenStore.saveToken(realm, syncResponse.nextBatch)
}
// Everything else we need to do outside the transaction
syncResponse.rooms?.also {
syncResponse.rooms?.let {
checkPushRules(it, isInitialSync)
userAccountDataSyncHandler.synchronizeWithServerIfNeeded(it.invite)
}
syncResponse.groups?.also {
syncResponse.groups?.let {
scheduleGroupDataFetchingIfNeeded(it)
}