Handle new Element Jitsi server notation

This commit is contained in:
Inex Code 2020-10-14 21:56:07 +03:00
parent 9759b70bae
commit 6d60189df1

View file

@ -30,7 +30,10 @@ class WellKnownInformations {
mIdentityServer = json['m.identity_server'] != null
? MHomeserver.fromJson(json['m.identity_server'])
: null;
jitsiHomeserver = json['im.vector.riot.jitsi'] != null
jitsiHomeserver = json['io.element.jitsi'] != null
? JitsiHomeserver.fromJson(json['io.element.jitsi'])
: null;
jitsiHomeserver ??= json['im.vector.riot.jitsi'] != null
? JitsiHomeserver.fromJson(json['im.vector.riot.jitsi'])
: null;
}