You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by binfalse <gi...@git.apache.org> on 2016/04/09 12:44:15 UTC
[GitHub] camel pull request: camel-xmpp: fix private chat response issue
GitHub user binfalse opened a pull request:
https://github.com/apache/camel/pull/938
camel-xmpp: fix private chat response issue
This fixes the issue with XMPP private chat responses, see https://issues.apache.org/jira/browse/CAMEL-9847
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/binfalse/camel master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/938.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #938
----
commit cbada76346fa0aae74128b2b74aa3a834144ea63
Author: Martin Scharm <ma...@binfalse.de>
Date: 2016-04-09T09:53:12Z
camel-xmpp: fix private chat response issue
Responding to a private chat wasn't able because the message was always sent to
String participant = exchange.getIn().getHeader(XmppConstants.TO, String.class);
However, the `XmppConstants.TO` in such messages is the camel instance
(which received the message) and not the chat's other participant.
Thus, responding to a chat message always resultet in a message to itself.
This patch fixes that issue and addresses messages always to
String participant = endpoint.getParticipant();
commit cb1b8f6337c4795fc9d5046c204ff1e5dc86d533
Author: Martin Scharm <ma...@binfalse.de>
Date: 2016-04-09T10:05:03Z
Merge branch 'master' of github.com:binfalse/camel
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] camel pull request: camel-xmpp: fix private chat response issue
Posted by binfalse <gi...@git.apache.org>.
Github user binfalse closed the pull request at:
https://github.com/apache/camel/pull/938
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---