Commit 6ff0d892 authored by Rafał Malinowski's avatar Rafał Malinowski

facebook: fix downloading contacts

Signed-off-by: Rafał Malinowski's avatarRafał Malinowski <rafal.przemyslaw.malinowski@gmail.com>
parent 57e66acc
......@@ -128,9 +128,7 @@ void FacebookRosterService::replaceContacts(std::vector<QFacebookContact> newCon
std::transform(
std::begin(newContacts), std::end(newContacts), std::back_inserter(newIds),
[](const QFacebookContact &c) { return QString::fromUtf8(c.id()); });
std::sort(std::begin(newContacts), std::end(newContacts), [](const QFacebookContact &x, const QFacebookContact &y) {
return x.id() < y.id();
});
std::sort(std::begin(newIds), std::end(newIds));
std::vector<QString> toRemove;
std::set_difference(
......
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