fix: Display error when user tries to send too large file

This commit is contained in:
Christian Pauly 2023-02-13 15:38:08 +01:00
commit aff10ab0ed
4 changed files with 18 additions and 3 deletions

View file

@ -19,6 +19,9 @@ extension LocalizedExceptionExtension on Object {
return (this as MatrixException).errorMessage;
}
}
if (this is FileTooBigMatrixException) {
return L10n.of(context)!.fileIsTooBigForServer;
}
if (this is BadServerVersionsException) {
final serverVersions = (this as BadServerVersionsException)
.serverVersions