From 9706f2c0979a41f6615ed40fd15ae9b219bdeec2 Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Sun, 18 Sep 2011 13:38:24 +0200 Subject: Do not overwrite from attribute in component mode License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php diff --git a/Swiften/Queries/IQRouter.cpp b/Swiften/Queries/IQRouter.cpp index 65f9d7f..c84e1bb 100644 --- a/Swiften/Queries/IQRouter.cpp +++ b/Swiften/Queries/IQRouter.cpp @@ -81,7 +81,7 @@ void IQRouter::removeHandler(boost::shared_ptr handler) { } void IQRouter::sendIQ(boost::shared_ptr iq) { - if (from_.isValid()) { + if (from_.isValid() && !iq->getFrom().isValid()) { iq->setFrom(from_); } channel_->sendIQ(iq); -- cgit v0.10.2-6-g49f6