Skip to content

Commit 19e218e

Browse files
committed
Small optimization
1 parent 6b98b30 commit 19e218e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/handler/SyncResponsePostTreatmentAggregatorHandler.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ internal class SyncResponsePostTreatmentAggregatorHandler @Inject constructor(
105105
.enqueue()
106106
}
107107

108-
private fun handleUserIdsForCheckingTrustAndAffectedRoomShields(userIdsWithDeviceUpdate: Iterable<String>) {
108+
private fun handleUserIdsForCheckingTrustAndAffectedRoomShields(userIdsWithDeviceUpdate: Collection<String>) {
109+
if (userIdsWithDeviceUpdate.isEmpty()) return
109110
crossSigningService.checkTrustAndAffectedRoomShields(userIdsWithDeviceUpdate.toList())
110111
}
111112
}

0 commit comments

Comments
 (0)