summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-04-28 11:06:38 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-04-28 11:08:11 (GMT)
commit534b7771cbfdee2fa60f6f154d578c3ef8cf2563 (patch)
tree21c09fa579ad4e9ef6cefdab98aee7e38a9f250e /Swift/Controllers/Chat/ChatController.cpp
parentd6f10adb0a723022eb4e4b57cdfff8288145f407 (diff)
downloadswift-534b7771cbfdee2fa60f6f154d578c3ef8cf2563.zip
swift-534b7771cbfdee2fa60f6f154d578c3ef8cf2563.tar.bz2
Send label catalogue queries to bare/full JID as appropriate.
Resolves: #244
Diffstat (limited to 'Swift/Controllers/Chat/ChatController.cpp')
-rw-r--r--Swift/Controllers/Chat/ChatController.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/Controllers/Chat/ChatController.cpp b/Swift/Controllers/Chat/ChatController.cpp
index 5a18a98..2fa4559 100644
--- a/Swift/Controllers/Chat/ChatController.cpp
+++ b/Swift/Controllers/Chat/ChatController.cpp
@@ -91,6 +91,10 @@ ChatController::~ChatController() {
delete chatStateTracker_;
}
+JID ChatController::getBaseJID() {
+ return isInMUC_ ? toJID_ : ChatControllerBase::getBaseJID();
+}
+
void ChatController::cancelReplaces() {
lastWasPresence_ = false;
}