Skip to content
Snippets Groups Projects
Commit c89110df authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Show "Room not Found" correctly

parent a05c2b51
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,8 @@ RocketChat.Notifications.onUser 'message', (msg) ->
openedRooms[typeName].ready = false
openedRooms[typeName].active = false
Blaze.remove openedRooms[typeName].template
if openedRooms[typeName].template?
Blaze.remove openedRooms[typeName].template
delete openedRooms[typeName].dom
delete openedRooms[typeName].template
......@@ -104,7 +105,9 @@ RocketChat.Notifications.onUser 'message', (msg) ->
room = ChatRoom.findOne query, { reactive: false }
if room?
if not room?
record.ready = true
else
openedRooms[typeName].rid = room._id
RoomHistoryManager.getMoreIfIsEmpty room._id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment