fix up Realtime/index.js - should be good now?

This commit is contained in:
Devin Howard 2016-12-18 22:45:56 -05:00
parent 79b6f74a5c
commit 2c17c2c6a3

View file

@ -186,11 +186,10 @@ let Realtime = {
}) })
self.room.videoAdded(self.handleVideoAdded) self.room.videoAdded(self.handleVideoAdded)
if (!Active.Map) { if (Active.Map) {
self.room.chat.$container.hide() self.room.chat.addWrapper()
self.room.chat.render()
} }
self.room.chat.addWrapper()
self.room.chat.render()
} // if Active.Mapper } // if Active.Mapper
}, },
addJuntoListeners: function() { addJuntoListeners: function() {
@ -239,14 +238,14 @@ let Realtime = {
$('.collabCompass').remove() $('.collabCompass').remove()
if (self.room) { if (self.room) {
self.room.leave() self.room.leave()
self.room.chat.$container.hide() self.room.chat.hide()
self.room.chat.close() self.room.chat.close()
} }
}, },
turnOn: function(notify) { turnOn: function(notify) {
var self = Realtime var self = Realtime
$('.collabCompass').show() $('.collabCompass').show()
self.room.chat.$container.show() self.room.chat.show()
self.room.room = 'map-' + Active.Map.id self.room.room = 'map-' + Active.Map.id
self.activeMapper = { self.activeMapper = {
id: Active.Mapper.id, id: Active.Mapper.id,