fix(xep): Fix discovery of XEP-0191 and XEP-0280
This commit is contained in:
parent
47b679d168
commit
da591a552d
@ -19,4 +19,7 @@ class ConnectionSettings {
|
||||
|
||||
/// The port to connect to. Skips DNS resolution if specified.
|
||||
final int? port;
|
||||
|
||||
/// The JID of the server we're connected to.
|
||||
JID get serverJid => JID('', jid.domain, '');
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ class BlockingManager extends XmppManagerBase {
|
||||
// Query the server
|
||||
final disco = getAttributes().getManagerById<DiscoManager>(discoManager)!;
|
||||
_supported = await disco.supportsFeature(
|
||||
getAttributes().getConnectionSettings().jid.toBare(),
|
||||
getAttributes().getConnectionSettings().serverJid,
|
||||
blockingXmlns,
|
||||
);
|
||||
_gotSupported = true;
|
||||
|
@ -53,7 +53,7 @@ class CarbonsManager extends XmppManagerBase {
|
||||
// Query the server
|
||||
final disco = getAttributes().getManagerById<DiscoManager>(discoManager)!;
|
||||
_supported = await disco.supportsFeature(
|
||||
getAttributes().getConnectionSettings().jid.toBare(),
|
||||
getAttributes().getConnectionSettings().serverJid,
|
||||
carbonsXmlns,
|
||||
);
|
||||
_gotSupported = true;
|
||||
|
Loading…
Reference in New Issue
Block a user