1
0
Fork 0
forked from blue/squawk

basic avatar/vcard changes uploads and roster reaction

This commit is contained in:
Blue 2019-10-24 12:42:38 +03:00
parent 652381b067
commit 36c71968bc
8 changed files with 97 additions and 11 deletions

View file

@ -543,3 +543,13 @@ void Core::Squawk::requestVCard(const QString& account, const QString& jid)
}
itr->second->requestVCard(jid);
}
void Core::Squawk::uploadVCard(const QString& account, const Shared::VCard& card)
{
AccountsMap::const_iterator itr = amap.find(account);
if (itr == amap.end()) {
qDebug() << "An attempt to upload vcard to non existing account" << account << ", skipping";
return;
}
itr->second->uploadVCard(card);
}