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:
|
||||
return L10n.of(context).tooManyRequestsWarning;
|
||||
default:
|
||||
if (exceptionContext == ExceptionContext.joinRoom) {
|
||||
return L10n.of(context).unableToJoinChat;
|
||||
}
|
||||
return (this as MatrixException).errorMessage;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue