mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 03:48:12 +03:00
Fixing code styling issues
This commit is contained in:
parent
dd13e1cb6d
commit
4e4f72f241
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue