Commit bcc3124a authored by Andrea Scarpino's avatar Andrea Scarpino

Assume that the stanza is from the server to which we are connected

parent 9b80102c
Pipeline #13268 passed with stages
in 21 minutes and 44 seconds
......@@ -61,8 +61,9 @@ void VCardManager::fetchVCard(const QString& jid)
void VCardManager::handleVCard(const QXmppVCardIq &iq)
{
if (!iq.photo().isEmpty())
avatarStorage->addAvatar(QXmppUtils::jidToBareJid(iq.from()), iq.photo());
if (!iq.photo().isEmpty()) {
avatarStorage->addAvatar(QXmppUtils::jidToBareJid(iq.from().isEmpty() ? client->configuration().jid() : iq.from()), iq.photo());
}
emit vCardReceived(iq);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment