chore: Update SDK
This commit is contained in:
parent
88f2cabe7c
commit
242c18aac3
3 changed files with 7 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue