Commit b798faf8 authored by LNJ's avatar LNJ 🖖

Fix roster not cleared when logging into account without contacts

Fixes #294.
parent da3dd3df
......@@ -119,10 +119,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