summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-10-04 19:00:00 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-10-04 19:00:00 (GMT)
commit537afef23b0f5da31c0cd38597a13773d79f77d4 (patch)
tree0dc01901e0b2a2aad5851b30f512db07d54d3706 /Swiften/Client/Client.cpp
parent56498f72ef1fbba08ef48c0cd91867786977c4d1 (diff)
downloadswift-537afef23b0f5da31c0cd38597a13773d79f77d4.zip
swift-537afef23b0f5da31c0cd38597a13773d79f77d4.tar.bz2
Implement getBoundJID() (as getJID())
Resolves: #582
Diffstat (limited to 'Swiften/Client/Client.cpp')
-rw-r--r--Swiften/Client/Client.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/Swiften/Client/Client.cpp b/Swiften/Client/Client.cpp
index fe9bc60..974e256 100644
--- a/Swiften/Client/Client.cpp
+++ b/Swiften/Client/Client.cpp
@@ -42,11 +42,6 @@ bool Client::isAvailable() {
return session_ && session_->getState() == ClientSession::Initialized;
}
-/** FIXME: implement */
-JID Client::getBoundJID() {
- return JID();
-}
-
void Client::connect() {
connect(jid_.getDomain());
}
@@ -256,6 +251,7 @@ void Client::handleStanzaAcked(boost::shared_ptr<Stanza> stanza) {
}
void Client::handleSessionInitialized() {
+ jid_ = session_->getLocalJID();
onConnected();
onAvailableChanged(true);
}