Improve fake mechanism of syncing

This commit is contained in:
Maxime NATUREL 2023-01-13 10:57:41 +01:00
parent e0be6ef09f
commit 88d1f75d1d
1 changed files with 7 additions and 1 deletions

View File

@ -163,6 +163,12 @@ class RoomPollDataSource @Inject constructor() {
Timber.d("roomId=$roomId")
// TODO
// unmock using SDK service + add unit tests
delay(3000)
if (fakeLoadCounter == 0) {
// fake first load
loadMorePolls(roomId)
} else {
// fake sync
delay(3000)
}
}
}