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

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

No files matched your search

+3
View File
@@ -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, '');
} }
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;