mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-09 08:38:43 +01:00
Fixing code styling issues
This commit is contained in:
parent
dd13e1cb6d
commit
4e4f72f241
@ -94,7 +94,7 @@ internal class DefaultFetchPollResponseEventsTask @Inject constructor(
|
||||
private suspend fun addMissingEventsInDB(roomId: String, events: List<Event>) {
|
||||
monarchy.awaitTransaction { realm ->
|
||||
val eventIdsToCheck = events.mapNotNull { it.eventId }.filter { it.isNotEmpty() }
|
||||
if(eventIdsToCheck.isNotEmpty()) {
|
||||
if (eventIdsToCheck.isNotEmpty()) {
|
||||
val existingIds = EventEntity.where(realm, eventIdsToCheck).findAll().toList().map { it.eventId }
|
||||
|
||||
events.filterNot { it.eventId in existingIds }
|
||||
|
Loading…
x
Reference in New Issue
Block a user