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