[polari/wip/fmuellner/combined-gsoc: 88/136] more cleanups
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/fmuellner/combined-gsoc: 88/136] more cleanups
- Date: Tue, 26 Jul 2016 23:23:22 +0000 (UTC)
commit 5a583fc83cadd863cbd39b9efbcddcd8091c1abd
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Jul 14 04:19:28 2016 +0200
more cleanups
src/userTracker.js | 18 +-----------------
1 files changed, 1 insertions(+), 17 deletions(-)
---
diff --git a/src/userTracker.js b/src/userTracker.js
index 19ca031..bd73ab4 100644
--- a/src/userTracker.js
+++ b/src/userTracker.js
@@ -160,10 +160,7 @@ const UserTracker = new Lang.Class({
/*keep track of initial members in the emittingRoom, both locally and
globally*/
- members.forEach(m => {
- m._room = emittingRoom;
- this._trackMember(m, emittingRoom);
- });
+ members.forEach(m => { this._trackMember(m, emittingRoom); });
} else {
this._clearUsersFromRoom(emittingRoom);
@@ -201,40 +198,27 @@ const UserTracker = new Lang.Class({
},
_onMemberRenamed: function(room, oldMember, newMember) {
- oldMember._room = room;
- newMember._room = room;
-
this._untrackMember(oldMember, room);
this._trackMember(newMember, room);
},
_onMemberDisconnected: function(room, member, message) {
- member._room = room;
-
this._untrackMember(member, room);
},
_onMemberKicked: function(room, member, actor) {
- member._room = room;
-
this._untrackMember(member, room);
},
_onMemberBanned: function(room, member, actor) {
- member._room = room;
-
this._untrackMember(member, room);
},
_onMemberJoined: function(room, member) {
- member._room = room;
-
this._trackMember(member, room);
},
_onMemberLeft: function(room, member, message) {
- member._room = room;
-
this._untrackMember(member, room);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]