Keep user in the same URL when room was not found

pull/572/head
Rodrigo Nascimento 11 years ago
parent 5e72006351
commit d71c76b94d
  1. 3
      client/routes/roomRoute.coffee

@ -21,7 +21,8 @@ openRoom = (type, name) ->
room = ChatRoom.findOne(query)
if not room?
FlowRouter.go 'room-not-found', {type: type, name: name}
Session.set 'roomNotFound', {type: type, name: name}
BlazeLayout.render 'main', {center: 'roomNotFound'}
return
mainNode = document.querySelector('.main-content')

Loading…
Cancel
Save