Skip to content

Commit

Permalink
vcard4: use singleton node with id=current
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Jun 12, 2024
1 parent 9aa24bb commit 2c99d02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vcardfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ Task *VCardFactory::setVCard(PsiAccount *account, const VCard4::VCard &v, const
}
QDomDocument *doc = account->client()->doc();
auto el = v.toXmlElement(*doc);
return account->pepManager()->publish(QLatin1String(PEP_VCARD4_NODE), PubSubItem({}, el));
return account->pepManager()->publish(QLatin1String(PEP_VCARD4_NODE), PubSubItem(QLatin1String("current"), el));
}

/**
Expand Down Expand Up @@ -363,7 +363,7 @@ Task *VCardRequest::execute()
}
}
if (!doTemp) {
auto task = (*paIt)->pepManager()->get(d->jid, PEP_VCARD4_NODE, {});
auto task = (*paIt)->pepManager()->get(d->jid, PEP_VCARD4_NODE, QLatin1String("current"));
task->connect(task, &PEPGetTask::finished, this, [this, task]() {
if (task->success()) {
if (!task->items().empty()) {
Expand Down

0 comments on commit 2c99d02

Please sign in to comment.