mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-02 16:14:21 +01:00
chore: Update SDK
This commit is contained in:
parent
890b6ee6ea
commit
a05215fc4c
@ -322,6 +322,10 @@ class MatrixState extends State<Matrix> {
|
|||||||
'im.ponies.room_emotes', // we want emotes to work properly
|
'im.ponies.room_emotes', // we want emotes to work properly
|
||||||
},
|
},
|
||||||
databaseBuilder: getDatabase,
|
databaseBuilder: getDatabase,
|
||||||
|
supportedLoginTypes: {
|
||||||
|
AuthenticationTypes.password,
|
||||||
|
if (PlatformInfos.isMobile) AuthenticationTypes.sso
|
||||||
|
},
|
||||||
);
|
);
|
||||||
LoadingDialog.defaultTitle = L10n.of(context).loadingPleaseWait;
|
LoadingDialog.defaultTitle = L10n.of(context).loadingPleaseWait;
|
||||||
LoadingDialog.defaultBackLabel = L10n.of(context).close;
|
LoadingDialog.defaultBackLabel = L10n.of(context).close;
|
||||||
|
@ -30,22 +30,8 @@ class _HomeserverPickerState extends State<HomeserverPicker> {
|
|||||||
|
|
||||||
setState(() => _isLoading = true);
|
setState(() => _isLoading = true);
|
||||||
|
|
||||||
// Look up well known
|
|
||||||
try {
|
try {
|
||||||
final wellKnown = await MatrixApi(homeserver: Uri.parse(homeserver))
|
await Matrix.of(context).client.checkHomeserver(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
|
|
||||||
});
|
|
||||||
final loginTypes = await Matrix.of(context).client.requestLoginTypes();
|
final loginTypes = await Matrix.of(context).client.requestLoginTypes();
|
||||||
if (loginTypes.flows
|
if (loginTypes.flows
|
||||||
.any((flow) => flow.type == AuthenticationTypes.password)) {
|
.any((flow) => flow.type == AuthenticationTypes.password)) {
|
||||||
|
@ -216,7 +216,7 @@ packages:
|
|||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: main
|
ref: main
|
||||||
resolved-ref: "4597ea344553e78a0817d7cdad16ac72079c8034"
|
resolved-ref: "6badbc327e74ed814a3d8da410b1b5c5ce2596c0"
|
||||||
url: "https://gitlab.com/famedly/famedlysdk.git"
|
url: "https://gitlab.com/famedly/famedlysdk.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.1"
|
version: "0.0.1"
|
||||||
@ -603,7 +603,7 @@ packages:
|
|||||||
name: matrix_api_lite
|
name: matrix_api_lite
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.1.4"
|
version: "0.1.6"
|
||||||
matrix_file_e2ee:
|
matrix_file_e2ee:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
Loading…
Reference in New Issue
Block a user