refactor: Migrate to new matrix sdk API

This commit is contained in:
Krille Fear 2021-08-18 15:24:59 +00:00
commit 47e68d813d
32 changed files with 103 additions and 93 deletions

View file

@ -54,7 +54,7 @@ class HomeserverPickerController extends State<HomeserverPicker> {
);
}
await Matrix.of(context).client.login(
type: AuthenticationTypes.token,
LoginType.mLoginToken,
token: token,
initialDeviceDisplayName: PlatformInfos.clientName,
);
@ -119,7 +119,7 @@ class HomeserverPickerController extends State<HomeserverPicker> {
final wellKnown =
await Matrix.of(context).client.checkHomeserver(homeserver);
var jitsi = wellKnown?.content
var jitsi = wellKnown?.additionalProperties
?.tryGet<Map<String, dynamic>>('im.vector.riot.jitsi')
?.tryGet<String>('preferredDomain');
if (jitsi != null) {