mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-17 19:58:57 +03:00
Also give up loading event for M_FORBIDDEN
This commit is contained in:
parent
365c03e763
commit
c44c637fba
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ internal class LoadTimelineStrategy(
|
|||
getContextLatch?.await()
|
||||
getContextLatch = null
|
||||
} catch (failure: Throwable) {
|
||||
if (failure is Failure.ServerError && failure.error.code == MatrixError.M_NOT_FOUND) {
|
||||
if (failure is Failure.ServerError && failure.error.code in listOf(MatrixError.M_NOT_FOUND, MatrixError.M_FORBIDDEN)) {
|
||||
// This failure is likely permanent, so handle in DefaultTimeline to restart without eventId
|
||||
throw failure
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue