mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Don't ask the user again to ack the subscription request in sip_jabber if the requesting contact is already on the roster
This commit is contained in:
@@ -601,6 +601,17 @@ 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();
|
||||||
|
|
||||||
|
// check if the requester is already on the roster
|
||||||
|
RosterItem *item = m_client->rosterManager()->getRosterItem(jid);
|
||||||
|
if(item)
|
||||||
|
{
|
||||||
|
qDebug() << Q_FUNC_INFO << "Already on the roster so we assume ack'ing subscription request is okay...";
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// ask whether to accept subscription request or not
|
||||||
QMessageBox::StandardButton allowSubscription;
|
QMessageBox::StandardButton allowSubscription;
|
||||||
allowSubscription = QMessageBox::question( 0,
|
allowSubscription = QMessageBox::question( 0,
|
||||||
tr("Friend Request in Jabber"),
|
tr("Friend Request in Jabber"),
|
||||||
|
Reference in New Issue
Block a user