Commit 850cc465 authored by LNJ's avatar LNJ 💬

Fix roster not cleared when logging into account without contacts

Fixes #294.
parent 08b64ff4
......@@ -120,10 +120,8 @@ void RosterManager::populateRoster()
vCardManager->fetchVCard(jid);
}
if (!items.isEmpty()) {
// replace current contacts with new ones from server
emit model->replaceItemsRequested(items);
}
// replace current contacts with new ones from server
emit model->replaceItemsRequested(items);
}
void RosterManager::addContact(const QString &jid, const QString &name, const QString &msg)
......
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