mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 04:08:44 +03:00
Improve fake mechanism of syncing
This commit is contained in:
parent
e0be6ef09f
commit
88d1f75d1d
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue