[polari/wip/raresv/popoverRebasedOnTracker] userTracker: Don't run handlers twice on disconnect



commit de02a28e4d866fcf92d4fba99f5cc5f715b9d727
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jul 14 04:33:07 2016 +0200

    userTracker: Don't run handlers twice on disconnect
    
    _untrackMember() already calls the handlers for us, no need for a repeat
    run ...

 src/userTracker.js |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/src/userTracker.js b/src/userTracker.js
index da48d2d..ff8a7a7 100644
--- a/src/userTracker.js
+++ b/src/userTracker.js
@@ -156,12 +156,6 @@ const UserTracker = new Lang.Class({
             members.forEach(m => { this._trackMember(m, emittingRoom); });
         } else {
             this._clearUsersFromRoom(emittingRoom);
-
-            /*since we have no channel, all users must be locally marked offline. so call the callbacks*/
-            for ([handlerID, handlerInfo] of this._roomMapping.get(emittingRoom)._handlerMapping) {
-                if (handlerInfo.nickName)
-                    handlerInfo.handler(handlerInfo.nickName, Tp.ConnectionPresenceType.OFFLINE);
-            }
         }
     },
 


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