[polari/wip/fmuellner/combined-gsoc: 89/137] userTracker: Don't reset handlerCounter when ensuring handlerMapping



commit 230b4adf1f7acc6b8e05b7419b0d269c806ffbd8
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jul 14 04:30:02 2016 +0200

    userTracker: Don't reset handlerCounter when ensuring handlerMapping

 src/userTracker.js |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/userTracker.js b/src/userTracker.js
index 53adf3c..d678fb3 100644
--- a/src/userTracker.js
+++ b/src/userTracker.js
@@ -191,10 +191,8 @@ const UserTracker = new Lang.Class({
 
     _ensureHandlerMappingForRoom: function(room) {
         /*if there is no map keeping track of the local status change handlers*/
-        if (!this._roomMapping.get(room)._handlerMapping) {
+        if (!this._roomMapping.get(room)._handlerMapping)
             this._roomMapping.get(room)._handlerMapping = new Map();
-            this._handlerCounter = 0;
-        }
     },
 
     _onMemberRenamed: function(room, oldMember, newMember) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]