summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-03-05 07:40:04 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-03-05 07:41:11 (GMT)
commit7e4e32a06effd8c7164e0a3d241bdd834d51e4a0 (patch)
tree42b95f1be4c32c3eec1f8ed55e879c397c349d42
parenta498ef7065f4483f86031dbfe481e55e4adb37d1 (diff)
downloadswift-contrib-7e4e32a06effd8c7164e0a3d241bdd834d51e4a0.zip
swift-contrib-7e4e32a06effd8c7164e0a3d241bdd834d51e4a0.tar.bz2
Send both items and adhoc queries to the server JID.
Resolves: #1073
-rw-r--r--Swift/Controllers/MainController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index d60bcbb..656fe11 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -314,7 +314,7 @@ void MainController::handleConnected() {
userSearchControllerChat_ = new UserSearchController(UserSearchController::StartChat, jid_, uiEventStream_, uiFactory_, client_->getIQRouter(), rosterController_);
userSearchControllerAdd_ = new UserSearchController(UserSearchController::AddContact, jid_, uiEventStream_, uiFactory_, client_->getIQRouter(), rosterController_);
- adHocManager_ = new AdHocManager(boundJID_, uiFactory_, client_->getIQRouter(), uiEventStream_, rosterController_->getWindow());
+ adHocManager_ = new AdHocManager(JID(boundJID_.getDomain()), uiFactory_, client_->getIQRouter(), uiEventStream_, rosterController_->getWindow());
}
loginWindow_->setIsLoggingIn(false);