summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-12-26 23:07:49 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-12-26 23:07:49 (GMT)
commit8aed9641dd20a3375f8a443189c7ca6243cf9fc6 (patch)
treea3ef33d52dcc1562db52e92ac730662459880bb6 /Swift/Controllers/ChatsManager.cpp
parent4d89c280976426c9e29ee9235b296afc4d38a7cd (diff)
downloadswift-contrib-8aed9641dd20a3375f8a443189c7ca6243cf9fc6.zip
swift-contrib-8aed9641dd20a3375f8a443189c7ca6243cf9fc6.tar.bz2
Additional plumbing for chat rebinding.
Diffstat (limited to 'Swift/Controllers/ChatsManager.cpp')
-rw-r--r--Swift/Controllers/ChatsManager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/Controllers/ChatsManager.cpp b/Swift/Controllers/ChatsManager.cpp
index 2863a14..e64967c 100644
--- a/Swift/Controllers/ChatsManager.cpp
+++ b/Swift/Controllers/ChatsManager.cpp
@@ -116,6 +116,7 @@ ChatController* ChatsManager::getChatController(const JID &contact) {
void ChatsManager::rebindControllerJID(const JID& from, const JID& to) {
chatControllers_[to] = chatControllers_[from];
chatControllers_.erase(from);
+ chatControllers_[to]->setToJID(to);
}
void ChatsManager::handleJoinMUCRequest(const JID &muc, const String &nick) {