feat: Add about server page

This commit is contained in:
Krille 2024-11-03 16:58:04 +01:00
commit 448a111c48
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
6 changed files with 391 additions and 7 deletions

View file

@ -95,6 +95,10 @@ extension LocalizedExceptionExtension on Object {
exceptionContext == ExceptionContext.checkHomeserver) {
return L10n.of(context).doesNotSeemToBeAValidHomeserver;
}
if (this is FormatException &&
exceptionContext == ExceptionContext.checkServerSupportInfo) {
return L10n.of(context).noContactInformationProvided;
}
if (this is String) return toString();
if (this is UiaException) return toString();
Logs().w('Something went wrong: ', this);
@ -105,4 +109,5 @@ extension LocalizedExceptionExtension on Object {
enum ExceptionContext {
changePassword,
checkHomeserver,
checkServerSupportInfo,
}