mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-17 19:58:57 +03:00
Format Code
This commit is contained in:
parent
33b170077e
commit
719e254bb4
2 changed files with 2 additions and 2 deletions
|
@ -198,7 +198,7 @@ internal class LoadTimelineStrategy(
|
|||
}
|
||||
}
|
||||
if (mode is Mode.Thread) {
|
||||
return timelineChunk?.loadMoreThread(count, Timeline.Direction.BACKWARDS) ?: LoadMoreResult.FAILURE
|
||||
return timelineChunk?.loadMoreThread(count) ?: LoadMoreResult.FAILURE
|
||||
}
|
||||
return timelineChunk?.loadMore(count, direction, fetchOnServerIfNeeded) ?: LoadMoreResult.FAILURE
|
||||
}
|
||||
|
|
|
@ -169,7 +169,7 @@ internal class TimelineChunk(private val chunkEntity: ChunkEntity,
|
|||
* This function will fetch more live thread timeline events using the /relations api. It will
|
||||
* always fetch results, while we want our data to be up to dated.
|
||||
*/
|
||||
suspend fun loadMoreThread(count: Int, direction: Timeline.Direction): LoadMoreResult {
|
||||
suspend fun loadMoreThread(count: Int, direction: Timeline.Direction = Timeline.Direction.BACKWARDS): LoadMoreResult {
|
||||
val rootThreadEventId = timelineSettings.rootThreadEventId ?: return LoadMoreResult.FAILURE
|
||||
return if (direction == Timeline.Direction.BACKWARDS) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue