From 3dd6245d52811f23a2d52f630b4b0d2353567d70 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 21 Dec 2016 03:11:40 -0500 Subject: [PATCH] don't need room here anymore --- frontend/src/Metamaps/Realtime/index.js | 2 +- frontend/src/Metamaps/Views/ChatView.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/Metamaps/Realtime/index.js b/frontend/src/Metamaps/Realtime/index.js index 0d1754bf..bbb28c30 100644 --- a/frontend/src/Metamaps/Realtime/index.js +++ b/frontend/src/Metamaps/Realtime/index.js @@ -249,7 +249,7 @@ let Realtime = { }, setupChat: function() { const self = Realtime - ChatView.setNewMap(self.room.room) + ChatView.setNewMap() ChatView.addParticipant(self.activeMapper) ChatView.addMessages(new DataModel.MessageCollection(DataModel.Messages), true) ChatView.show() diff --git a/frontend/src/Metamaps/Views/ChatView.js b/frontend/src/Metamaps/Views/ChatView.js index 4484a7ea..8f5d2642 100644 --- a/frontend/src/Metamaps/Views/ChatView.js +++ b/frontend/src/Metamaps/Views/ChatView.js @@ -32,9 +32,8 @@ const ChatView = { } }) }, - setNewMap: function(room) { + setNewMap: function() { const self = ChatView - self.room = room self.conversationLive = false self.isParticipating = false self.alertSound = true // whether to play sounds on arrival of new messages or not