mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-18 20:04:00 +02:00
Add new contacts to group Tomahawk on the roster
This commit is contained in:
@@ -587,6 +587,7 @@ Jabber_p::handleSubscription( const JID& jid, const std::string& /*msg*/ )
|
|||||||
qDebug() << Q_FUNC_INFO << jid.bare().c_str();
|
qDebug() << Q_FUNC_INFO << jid.bare().c_str();
|
||||||
|
|
||||||
StringList groups;
|
StringList groups;
|
||||||
|
groups.push_back( "Tomahawk" );
|
||||||
m_client->rosterManager()->subscribe( jid, "", groups, "" );
|
m_client->rosterManager()->subscribe( jid, "", groups, "" );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -597,6 +598,7 @@ Jabber_p::handleSubscriptionRequest( const JID& jid, const std::string& /*msg*/
|
|||||||
{
|
{
|
||||||
qDebug() << Q_FUNC_INFO << jid.bare().c_str();
|
qDebug() << Q_FUNC_INFO << jid.bare().c_str();
|
||||||
StringList groups;
|
StringList groups;
|
||||||
|
groups.push_back( "Tomahawk" );
|
||||||
m_client->rosterManager()->subscribe( jid, "", groups, "" );
|
m_client->rosterManager()->subscribe( jid, "", groups, "" );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user