Always setFrom for incoming stanzas to full jid

This commit is contained in:
Jan Kaluza 2011-06-28 10:32:14 +02:00
parent 091411eea4
commit bc97b0fb77

View file

@ -116,9 +116,7 @@ void ServerStanzaChannel::handleElement(boost::shared_ptr<Element> element, cons
return;
}
if (stanza->getFrom().toString().empty()) {
stanza->setFrom(session->getRemoteJID());
}
stanza->setFrom(session->getRemoteJID());
if (!stanza->getFrom().isValid())
return;