Always setFrom for incoming stanzas to full jid
This commit is contained in:
parent
091411eea4
commit
bc97b0fb77
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue