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.
|
/// The port to connect to. Skips DNS resolution if specified.
|
||||||
final int? port;
|
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
|
// Query the server
|
||||||
final disco = getAttributes().getManagerById<DiscoManager>(discoManager)!;
|
final disco = getAttributes().getManagerById<DiscoManager>(discoManager)!;
|
||||||
_supported = await disco.supportsFeature(
|
_supported = await disco.supportsFeature(
|
||||||
getAttributes().getConnectionSettings().jid.toBare(),
|
getAttributes().getConnectionSettings().serverJid,
|
||||||
blockingXmlns,
|
blockingXmlns,
|
||||||
);
|
);
|
||||||
_gotSupported = true;
|
_gotSupported = true;
|
||||||
|
@ -53,7 +53,7 @@ class CarbonsManager extends XmppManagerBase {
|
|||||||
// Query the server
|
// Query the server
|
||||||
final disco = getAttributes().getManagerById<DiscoManager>(discoManager)!;
|
final disco = getAttributes().getManagerById<DiscoManager>(discoManager)!;
|
||||||
_supported = await disco.supportsFeature(
|
_supported = await disco.supportsFeature(
|
||||||
getAttributes().getConnectionSettings().jid.toBare(),
|
getAttributes().getConnectionSettings().serverJid,
|
||||||
carbonsXmlns,
|
carbonsXmlns,
|
||||||
);
|
);
|
||||||
_gotSupported = true;
|
_gotSupported = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user