Change after PR review

This commit is contained in:
ganfra 2022-06-13 11:11:26 +02:00 committed by Benoit Marty
parent c384a3de8d
commit 2a9ac539e4

View File

@ -46,7 +46,7 @@ internal class EventInsertLiveObserver @Inject constructor(@SessionDatabase real
observerScope.launch {
lock.withLock {
if (!results.isLoaded || results.isEmpty()) {
return@launch
return@withLock
}
val idsToDeleteAfterProcess = ArrayList<String>()
val filteredEvents = ArrayList<EventInsertEntity>(results.size)