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

Fix readMessages

parent ac3af381
No related branches found
No related tags found
No related merge requests found
......@@ -28,10 +28,10 @@ openRoom = (type, name) ->
if mainNode?
for child in mainNode.children
mainNode.removeChild child if child?
room = RoomManager.getDomOfRoom(type + name, room._id)
mainNode.appendChild room
if room.classList.contains('room-container')
room.querySelector('.messages-box > .wrapper').scrollTop = room.oldScrollTop
roomDom = RoomManager.getDomOfRoom(type + name, room._id)
mainNode.appendChild roomDom
if roomDom.classList.contains('room-container')
roomDom.querySelector('.messages-box > .wrapper').scrollTop = roomDom.oldScrollTop
Session.set 'openedRoom', 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