fix: Display error when user tries to send too large file
This commit is contained in:
parent
4f9d588721
commit
aff10ab0ed
4 changed files with 18 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue