Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XEP-0359: Fix filtering of messages applicable to SIDs. #344

Merged
merged 2 commits into from
Sep 2, 2019

Conversation

vanitasvitae
Copy link
Member

I noticed, that despite calling sidManager.enable(), the StableAndUniqueStanzaIdManager did not append any <origin-id/> elements to outgoing messages.

This patch fixes the filter logic, which was borked to begin with. The filter basically checked A and not A which never becomes true. I wonder how this happened 🤔

@vanitasvitae
Copy link
Member Author

Btw: This fix comes courtesy to Mercury testing 😋

@Flowdalic Flowdalic merged commit a36e748 into igniterealtime:master Sep 2, 2019
@Flowdalic
Copy link
Member

Thanks :)

Any reason why we don't add origin-id to every outgoing message per default?

@vanitasvitae vanitasvitae deleted the fixStanzaIDs branch September 2, 2019 15:40
@vanitasvitae
Copy link
Member Author

@Flowdalic we actually already did (there was a static block which added a ConnectionCreationListener which got an instance of the StableAndUniqueStanzaIdManager for each new connection. On top of this, each manager enabled itself in its constructor.

I created #345 which makes this behaviour configurable, but also preserve it by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants