feat: Track stanza responses as a tuple of (to, id)

Also fixes an invalid test case in the XEP-0198 tests, where
the IQ reply sets the "to" instead of the "from".
This commit is contained in:
2023-01-10 12:50:07 +01:00
parent 9223a7d403
commit 6517065a1a
2 changed files with 61 additions and 37 deletions

View File

@@ -348,7 +348,7 @@ void main() {
),
StanzaExpectation(
"<iq to='user@example.com' type='get' id='a' xmlns='jabber:client' />",
"<iq to='user@example.com' type='result' id='a' />",
"<iq from='user@example.com' type='result' id='a' />",
ignoreId: true,
adjustId: true,
),