fix: Fix crash with direct server IQs
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
1aa50699ad
commit
6c63b53cf4
@ -523,7 +523,10 @@ class XmppConnection {
|
|||||||
var future = Future.value(XMLNode(tag: 'not-used'));
|
var future = Future.value(XMLNode(tag: 'not-used'));
|
||||||
if (awaitable) {
|
if (awaitable) {
|
||||||
future = await _stanzaAwaiter.addPending(
|
future = await _stanzaAwaiter.addPending(
|
||||||
data.stanza.to!,
|
// A stanza with no to attribute is for direct processing by the server. As such,
|
||||||
|
// we can correlate it by just *assuming* we have that attribute
|
||||||
|
// (RFC 6120 Section 8.1.1.1)
|
||||||
|
data.stanza.to ?? _connectionSettings.jid.toBare().toString(),
|
||||||
data.stanza.id!,
|
data.stanza.id!,
|
||||||
data.stanza.tag,
|
data.stanza.tag,
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user