refactor: Migrate to new matrix sdk API
This commit is contained in:
parent
a85f35088a
commit
47e68d813d
32 changed files with 103 additions and 93 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue