Skip to content

Commit 88d1f75

Browse files
committed
Improve fake mechanism of syncing
1 parent e0be6ef commit 88d1f75

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

vector/src/main/java/im/vector/app/features/roomprofile/polls/list/data/RoomPollDataSource.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ class RoomPollDataSource @Inject constructor() {
163163
Timber.d("roomId=$roomId")
164164
// TODO
165165
// unmock using SDK service + add unit tests
166-
delay(3000)
166+
if (fakeLoadCounter == 0) {
167+
// fake first load
168+
loadMorePolls(roomId)
169+
} else {
170+
// fake sync
171+
delay(3000)
172+
}
167173
}
168174
}

0 commit comments

Comments
 (0)