From 0313b451afbeffc33cc0060ce6fd7b4f2ee9a2bb Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Wed, 7 Apr 2010 22:07:26 +0100
Subject: Update your own status on login.

Resolves: #308

diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index f18bd5a..2d3732c 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -237,6 +237,9 @@ void MainController::handleChangeStatusRequest(StatusShow::Type show, const Stri
 }
 
 void MainController::sendPresence(boost::shared_ptr<Presence> presence) {
+	rosterController_->getWindow()->setMyStatusType(presence->getShow());
+	rosterController_->getWindow()->setMyStatusText(presence->getStatus());
+
 	// Copy presence before adding extra information
 	lastSentPresence_ = presence->clone();
 
-- 
cgit v0.10.2-6-g49f6