Verified Commit a6570557 authored by Linus Jahn's avatar Linus Jahn

rostermanager: Fix addContact

parent 4d4cb856
......@@ -109,8 +109,8 @@ void RosterManager::populateRoster()
void RosterManager::addContact(const QString jid, const QString name, const QString msg)
if (client->state() == QXmppClient::ConnectedState) {
manager.addItem(jid, name);
manager.subscribe(jid, msg);
manager.renameItem(jid, name);
} else {
emit kaidan->passiveNotificationRequested(
tr("Could not add contact, as a result of not being connected.")
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