[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/libkopete
From:       Pali Rohár <pali.rohar () gmail ! com>
Date:       2013-05-17 15:23:11
Message-ID: 20130517152311.21EA0AC87A () svn ! kde ! org
[Download RAW message or body]

SVN commit 1355163 by pali:

Wait 20s before notifications (contact online/offline) are visible.
Before it was only 5s and it was not enought. Kopete more times spammed user about each online contact.


 M  +4 -4      kopeteaccount.cpp  


--- trunk/KDE/kdenetwork/kopete/libkopete/kopeteaccount.cpp #1355162:1355163
@@ -569,15 +569,15 @@
 
 	if ( wasOffline || newStatus.status() == OnlineStatus::Offline )
 	{
-		// Wait for five seconds until we treat status notifications for contacts
+		// Wait for twenty seconds until we treat status notifications for contacts
 		// as unrelated to our own status change.
-		// Five seconds may seem like a long time, but just after your own
+		// Twenty seconds may seem like a long time, but just after your own
 		// connection it's basically neglectible, and depending on your own
 		// contact list's size, the protocol you are using, your internet
 		// connection's speed and your computer's speed you *will* need it.
 		d->suppressStatusNotification = true;
 		d->suppressStatusTimer.setSingleShot( true );
-		d->suppressStatusTimer.start( 5000 );
+		d->suppressStatusTimer.start( 20000 );
 		//the timer is also used to reset the d->connectionTry
 	}
 
@@ -621,7 +621,7 @@
 {
 	d->suppressStatusNotification = true;
 	d->suppressStatusTimer.setSingleShot( true );
-	d->suppressStatusTimer.start( 5000 );
+	d->suppressStatusTimer.start( 20000 );
 
 	QHashIterator<QString, Contact*> it(d->contacts);
 	for (  ; it.hasNext(); ) {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic