[polari/wip/fmuellner/combined-gsoc: 132/137] userTracker: Remove unneeded call to ensureRoomMapping()



commit 69a0a68a9d4bbb64752f4c69ce592f1c5d294490
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Jul 27 00:03:37 2016 +0200

    userTracker: Remove unneeded call to ensureRoomMapping()
    
    _onChannelChanged() is only run when we connected to the 'notify::channel'
    signal - we store the handler ID in the roomData, so the data must exist
    when the handler is connected.

 src/userTracker.js |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/userTracker.js b/src/userTracker.js
index 2901a13..96306ec 100644
--- a/src/userTracker.js
+++ b/src/userTracker.js
@@ -143,8 +143,6 @@ const UserTracker = new Lang.Class({
         else
             members = [room.channel.connection.self_contact, room.channel.target_contact];
 
-        this._ensureRoomMappingForRoom(room);
-
         /*keep track of initial members in the room, both locally and
         globally*/
         members.forEach(m => { this._trackMember(m, room); });


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