diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-10-08 08:34:38 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-10-08 08:34:38 (GMT) |
commit | 58177796fa51784da5f10298a643f972164e6d07 (patch) | |
tree | 88e063533f9410a7a57500d9212f45820cb360a2 /Swift/Controllers/MainController.cpp | |
parent | 091f554f42dcdef534718fb759eb45b622adfd4f (diff) | |
download | swift-contrib-58177796fa51784da5f10298a643f972164e6d07.zip swift-contrib-58177796fa51784da5f10298a643f972164e6d07.tar.bz2 |
Cancel chat state display when offline.
Release-Notes: Contacts will no longer show as 'typing' if you go offline before they've sent the message.
Resolves: #561
Diffstat (limited to 'Swift/Controllers/MainController.cpp')
-rw-r--r-- | Swift/Controllers/MainController.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp index 37dc0a9..e3079ac 100644 --- a/Swift/Controllers/MainController.cpp +++ b/Swift/Controllers/MainController.cpp @@ -310,7 +310,7 @@ void MainController::handleConnected() { vcardManager_->requestOwnVCard(); - setManagersEnabled(true); + setManagersOnline(true); //Send presence last to catch all the incoming presences. sendPresence(statusTracker_->getNextPresence()); } @@ -521,12 +521,12 @@ void MainController::logout() { rosterController_->getWindow()->setMyStatusType(StatusShow::None); rosterController_->getWindow()->setMyStatusText(""); } - setManagersEnabled(false); + setManagersOnline(false); } -void MainController::setManagersEnabled(bool enabled) { +void MainController::setManagersOnline(bool enabled) { if (chatsManager_) { - chatsManager_->setEnabled(enabled); + chatsManager_->setOnline(enabled); } if (rosterController_) { rosterController_->setEnabled(enabled); |