mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 01:15:54 +03:00
permalink loadMore: do not endlessly retry on M_UNKNOWN error
Currently getting this after "[rich replies] matrix-sdk: Ensure correct room for events loaded by chunks" Change-Id: I6658a9ed9e5df6d1cca580f2e83fff4a86d3383a
This commit is contained in:
parent
af720cdab9
commit
84684f24ea
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ internal class LoadTimelineStrategy constructor(
|
|||
getContextLatch?.await()
|
||||
getContextLatch = null
|
||||
} catch (failure: Throwable) {
|
||||
if (failure is Failure.ServerError && failure.error.code in listOf(MatrixError.M_NOT_FOUND, MatrixError.M_FORBIDDEN)) {
|
||||
if (failure is Failure.ServerError && failure.error.code in listOf(MatrixError.M_NOT_FOUND, MatrixError.M_FORBIDDEN, MatrixError.M_UNKNOWN)) {
|
||||
// This failure is likely permanent, so handle in DefaultTimeline to restart without eventId
|
||||
throw failure
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue