fix up Realtime/index.js - should be good now?
This commit is contained in:
parent
79b6f74a5c
commit
2c17c2c6a3
1 changed files with 5 additions and 6 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue