Also give up loading event for M_FORBIDDEN
Change-Id: Ic21821df4a341257dca99149141855a34edc5101
This commit is contained in:
parent
886cd253ec
commit
972fd9f31a
|
@ -198,7 +198,7 @@ internal class LoadTimelineStrategy(
|
||||||
getContextLatch?.await()
|
getContextLatch?.await()
|
||||||
getContextLatch = null
|
getContextLatch = null
|
||||||
} catch (failure: Throwable) {
|
} 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
|
// This failure is likely permanent, so handle in DefaultTimeline to restart without eventId
|
||||||
throw failure
|
throw failure
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue