Fix classical init sync (not used anymore, except in debug mode) case.

This commit is contained in:
Benoit Marty 2021-03-05 09:39:47 +01:00 committed by Benoit Marty
parent ccf8e94c5e
commit 490780b906

View file

@ -195,7 +195,7 @@ internal class RoomSyncHandler @Inject constructor(private val readReceiptHandle
if (handleEphemeralEvents) {
ephemeralResult = roomSync.ephemeral?.roomSyncEphemeral?.events
?.takeIf { it.isNotEmpty() }
?.let { handleEphemeral(realm, roomId, it, false) }
?.let { handleEphemeral(realm, roomId, it, insertType == EventInsertType.INITIAL_SYNC) }
}
if (roomSync.accountData?.events?.isNotEmpty() == true) {