File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -572,10 +572,10 @@ class Client extends MatrixApi {
572572 final versions = await getVersions ();
573573 if (! versions.versions
574574 .any ((version) => supportedVersions.contains (version))) {
575- throw BadServerVersionsException (
576- versions.versions.toSet (),
577- supportedVersions,
575+ Logs ().w (
576+ 'Server supports the versions: ${versions .toString ()} but this application is only compatible with ${supportedVersions .toString ()}.' ,
578577 );
578+ assert (false );
579579 }
580580
581581 final loginTypes = await getLoginFlows () ?? [];
@@ -4080,16 +4080,6 @@ enum SyncStatus {
40804080 error,
40814081}
40824082
4083- class BadServerVersionsException implements Exception {
4084- final Set <String > serverVersions, supportedVersions;
4085-
4086- BadServerVersionsException (this .serverVersions, this .supportedVersions);
4087-
4088- @override
4089- String toString () =>
4090- 'Server supports the versions: ${serverVersions .toString ()} but this application is only compatible with ${supportedVersions .toString ()}.' ;
4091- }
4092-
40934083class BadServerLoginTypesException implements Exception {
40944084 final Set <String > serverLoginTypes, supportedLoginTypes;
40954085
You can’t perform that action at this time.
0 commit comments