Bug 955668 - Force-refresh open newtabs less frequently during LIST, r=nhnt11.
authoraleth <aleth@instantbird.org>
Fri, 18 Oct 2013 07:08:18 -0400
changeset 17308 8c0c4bbab2fc057a0544f0fe61ae5f0a22719b91
parent 17307 a4f9bcb9fe2a2fd429fa1aa204ed5742caa33294
child 17309 0396145c4329b82381f90b9acab90d103f0583a6
push id1151
push userbugzilla@standard8.plus.com
push dateMon, 03 Feb 2014 22:50:32 +0000
treeherdercomm-aurora@267d8e9143d5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnhnt11
bugs955668
Bug 955668 - Force-refresh open newtabs less frequently during LIST, r=nhnt11.
im/components/ibConvStatsService.js
--- a/im/components/ibConvStatsService.js
+++ b/im/components/ibConvStatsService.js
@@ -260,17 +260,17 @@ ConvStatsService.prototype = {
       chatList.set(chat.name, possibleConv);
     }
     if (this._pendingChats.length)
       executeSoon(this._addPendingChats.bind(this));
     else
       delete this._addingPendingChats;
     let now = Date.now();
     if ((!this._accountsRequestingRoomInfo.size && !this._pendingChats.length) ||
-        now - this._lastUpdateNotification > 100) {
+        now - this._lastUpdateNotification > 500) {
       this._notifyObservers("updated");
       this._lastUpdateNotification = now;
     }
   },
 
   _removeChatsForAccount: function(aAccId) {
     if (!this._chatsByAccountIdAndName.has(aAccId))
       return;