[polari/wip/fmuellner/combined-gsoc: 128/136] userTracker: Same for deleteRoomData ...
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/fmuellner/combined-gsoc: 128/136] userTracker: Same for deleteRoomData ...
- Date: Tue, 26 Jul 2016 23:26:44 +0000 (UTC)
commit f9ad854bea7e4df3c23f07c29d10f25961dff971
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]