From 54f39d8a474ce1df33d94daff204abc865f0fb02 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sat, 1 Oct 2011 14:27:42 +0200
Subject: Update IQRouter JID after session was authenticated.

Resolves: #971

diff --git a/Swiften/Client/CoreClient.cpp b/Swiften/Client/CoreClient.cpp
index a223e3d..f6a3f20 100644
--- a/Swiften/Client/CoreClient.cpp
+++ b/Swiften/Client/CoreClient.cpp
@@ -277,6 +277,7 @@ void CoreClient::handleDataWritten(const SafeByteArray& data) {
 
 void CoreClient::handleStanzaChannelAvailableChanged(bool available) {
 	if (available) {
+		iqRouter_->setJID(session_->getLocalJID());
 		handleConnected();
 		onConnected();
 	}
-- 
cgit v0.10.2-6-g49f6