diff --git a/vector/src/main/java/im/vector/app/features/roomprofile/polls/list/data/RoomPollDataSource.kt b/vector/src/main/java/im/vector/app/features/roomprofile/polls/list/data/RoomPollDataSource.kt index d6d9010704..c0efb1efa1 100644 --- a/vector/src/main/java/im/vector/app/features/roomprofile/polls/list/data/RoomPollDataSource.kt +++ b/vector/src/main/java/im/vector/app/features/roomprofile/polls/list/data/RoomPollDataSource.kt @@ -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) + } } }