Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Conversation

@melvo
Copy link
Contributor

@melvo melvo commented Mar 18, 2025

PR check list:

  • Document your code
  • Add \since QXmpp 1.X, QXMPP_EXPORT
  • Update doc/doap.xml
  • Add unit tests
  • Format the code: Run clang-format -i src/<edited-file(s)> tests/<edited-file(s)>

@pasnox
Copy link
Contributor

pasnox commented Mar 19, 2025

Lgtm

melvo and others added 3 commits March 19, 2025 18:50
The moved XEP discourages auto-acccepting Moved subscriptions, even if
they are verified. Now, new verified Moved subscription requests are
emitted via subscriptionRequestReceived() like other subscription
requests, so the user may accept it. If the JID is not valid, the
attribute in the presence is cleared.
If no QXmppMovedManager is registered with the client no verification
of Moved old JIDs can be done. To avoid any security accidents here (if
clients should forget to add the Moved manager e.g.), always clear the
moved old JID in this case.

handleStanza() or QXmppClient::presenceReceived() can be used to access
the full presence with potentially invalid moved old JIDs.

safe-pr
The handling of moved old JIDs and interaction with the
QXmppMovedManager was undocumented. This adds documentation, including
the behaviour changes between 1.9.4/1.10.1 and 1.9.5/1.10.2.
@lnjX lnjX merged commit 17a208e into qxmpp-project:1.9 Mar 19, 2025
9 of 15 checks passed
@lnjX lnjX deleted the fix/moved branch March 19, 2025 17:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants