Skip to content

Conversation

@singpolyma
Copy link
Contributor

Not the function named failed

Not the function named failed
);

expect(entity.streamManagement.outbound).toBe(45);
expect(entity.streamManagement.outbound).toBe(0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you help me understand this change and why that expectation is correct ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If resume fails then we should not keep the previous outbound count from previous session, since we did not resume it, but rather we are starting a new session counting at zero.

@sonnyp sonnyp changed the title element.is("failed") stream-management: Fix failed resumption Feb 19, 2025
@sonnyp sonnyp merged commit d01b2f1 into xmppjs:main Feb 19, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants