Fixed VCard without to attribute

This commit is contained in:
HanzZ 2011-06-19 20:01:23 +02:00
parent 2d49798d12
commit ca3ebd5c3c

View file

@ -66,7 +66,8 @@ bool VCardResponder::handleGetRequest(const Swift::JID& from, const Swift::JID&
std::string name = to_.getUnescapedNode();
if (name.empty()) {
to_ = user->getComponent()->getJID();
std::cout << "aaaa " << user->getComponent()->getJID().toString() << "\n";
to_ = user->getJID();
name = to_.getUnescapedNode();
}