chore: Improve join abandoned invite exception
This commit is contained in:
parent
a6380b52bc
commit
d25bfe3f90
1 changed files with 3 additions and 0 deletions
|
|
@ -44,6 +44,9 @@ extension LocalizedExceptionExtension on Object {
|
||||||
case MatrixError.M_LIMIT_EXCEEDED:
|
case MatrixError.M_LIMIT_EXCEEDED:
|
||||||
return L10n.of(context).tooManyRequestsWarning;
|
return L10n.of(context).tooManyRequestsWarning;
|
||||||
default:
|
default:
|
||||||
|
if (exceptionContext == ExceptionContext.joinRoom) {
|
||||||
|
return L10n.of(context).unableToJoinChat;
|
||||||
|
}
|
||||||
return (this as MatrixException).errorMessage;
|
return (this as MatrixException).errorMessage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue