chore: Update SDK

This commit is contained in:
Christian Pauly 2021-01-21 08:44:17 +01:00
commit 242c18aac3
3 changed files with 7 additions and 17 deletions

View file

@ -322,6 +322,10 @@ class MatrixState extends State<Matrix> {
'im.ponies.room_emotes', // we want emotes to work properly
},
databaseBuilder: getDatabase,
supportedLoginTypes: {
AuthenticationTypes.password,
if (PlatformInfos.isMobile) AuthenticationTypes.sso
},
);
LoadingDialog.defaultTitle = L10n.of(context).loadingPleaseWait;
LoadingDialog.defaultBackLabel = L10n.of(context).close;

View file

@ -30,22 +30,8 @@ class _HomeserverPickerState extends State<HomeserverPicker> {
setState(() => _isLoading = true);
// Look up well known
try {
final wellKnown = await MatrixApi(homeserver: Uri.parse(homeserver))
.requestWellKnownInformations();
homeserver = wellKnown.mHomeserver.baseUrl;
} catch (e) {
Logs().v('Found no well known information', e);
}
try {
await Matrix.of(context)
.client
.checkHomeserver(homeserver, supportedLoginTypes: {
AuthenticationTypes.password,
if (PlatformInfos.isMobile) AuthenticationTypes.sso
});
await Matrix.of(context).client.checkHomeserver(homeserver);
final loginTypes = await Matrix.of(context).client.requestLoginTypes();
if (loginTypes.flows
.any((flow) => flow.type == AuthenticationTypes.password)) {