[polari/wip/fmuellner/combined-gsoc: 127/137] userTracker: Same for deleteRoomData ...
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/fmuellner/combined-gsoc: 127/137] userTracker: Same for deleteRoomData ...
- Date: Thu, 28 Jul 2016 16:26:07 +0000 (UTC)
commit 01f7f492db0ee5b8f9e7424883a1dc0ecad3025b
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Jul 26 23:32:47 2016 +0200
userTracker: Same for deleteRoomData ...
src/userTracker.js | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/userTracker.js b/src/userTracker.js
index 50df82a..412adac 100644
--- a/src/userTracker.js
+++ b/src/userTracker.js
@@ -97,11 +97,6 @@ const UserTracker = new Lang.Class({
this._roomData.set(room, data);
},
- _deleteRoomData: function(room) {
- if (this._roomData.has(room))
- this._roomData.delete(room);
- },
-
_deleteRoomDataHandler: function(room, handlerID) {
if (!this._isRoomData(room))
return;
@@ -127,7 +122,9 @@ const UserTracker = new Lang.Class({
this._getRoomSignals(room).forEach(id => { room.disconnect(id); });
this._clearUsersFromRoom(room);
- this._deleteRoomData(room);
+ this._roomData.delete(room);
+ },
+
},
_connectRoomSignalsForRoom: function(room) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]