no room is created if anon user (#642)

This commit is contained in:
Connor Turland 2016-09-17 15:06:54 -04:00 committed by GitHub
parent 698adf69cd
commit 823c0c5990

View file

@ -206,9 +206,11 @@ Metamaps.Realtime = {
self.socket.emit('endMapperNotify')
$('.collabCompass').remove()
self.status = false
self.room.leave()
self.room.chat.$container.hide()
self.room.chat.close()
if (self.room) {
self.room.leave()
self.room.chat.$container.hide()
self.room.chat.close()
}
},
turnOn: function (notify) {
var self = Metamaps.Realtime