buglabs/bugswarm-connector — Issue #49: private messages not handled unless connector initiates private chat
Author: jconnolly
Created: 2011-12-08 20:47:32+00:00
State: open
Labels: connector

STR:

1. Go through the steps to get your API keys and username, and your device activated with your swarm. (http://ip/bugswarm, etc)
2. load test.bugswarm.net, navigate to your device's feeds page
3. restart felix/knapsack

ER:
the feeds continue to be sent

AR:
only the capabilities message is sent, the feeds are not.

After the presence drops off comes back up, as a result of felix restarting, and after capabilities are broadcast publicly by the bugconnector in the MUC, the webui issues a private message to the connector. The connector should be responding to these with the contents of the specfic selected feeds, but they're not.

The issue is here:

https://github.com/buglabs/bugswarm-connector/blob/master/com.buglabs.bug.swarm.connector/src/com/buglabs/bug/swarm/connector/xmpp/SwarmXMPPClient.java#L217

The PrivateMessageHandler is only spawned when the connector is the one creating the private chat. All other private messages go unhandled.