mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Improve the logs for TimelineException.CannotPaginate (#1708)
This commit is contained in:
committed by
GitHub
parent
c377656354
commit
3bbaf8e5e7
+6
-2
@@ -194,8 +194,12 @@ class RustMatrixTimeline(
|
|||||||
waitForToken = true,
|
waitForToken = true,
|
||||||
)
|
)
|
||||||
innerRoom.paginateBackwards(paginationOptions)
|
innerRoom.paginateBackwards(paginationOptions)
|
||||||
}.onFailure {
|
}.onFailure { error ->
|
||||||
Timber.d(it, "Fail to paginate for room ${matrixRoom.roomId}")
|
if (error is TimelineException.CannotPaginate) {
|
||||||
|
Timber.d("Can't paginate backwards on room ${matrixRoom.roomId}, we're already at the start")
|
||||||
|
} else {
|
||||||
|
Timber.e(error, "Error paginating backwards on room ${matrixRoom.roomId}")
|
||||||
|
}
|
||||||
}.onSuccess {
|
}.onSuccess {
|
||||||
Timber.v("Success back paginating for room ${matrixRoom.roomId}")
|
Timber.v("Success back paginating for room ${matrixRoom.roomId}")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user