feat: Add about server page
This commit is contained in:
parent
cdaaad9c54
commit
448a111c48
6 changed files with 391 additions and 7 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue