fix(xep): Fix discovery of XEP-0191 and XEP-0280

This commit is contained in:
PapaTutuWawa 2023-05-16 19:06:50 +02:00
parent 47b679d168
commit da591a552d
3 changed files with 5 additions and 2 deletions

View File

@ -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, '');
}

View File

@ -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;

View File

@ -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;