 				Meteor.defer ->
 					RoomManager.updateMentionsMarksOfRoom typeName
 
-				room.isLoading.set false if setLoading
+				room.isLoading.set false
 				room.loaded += result.messages.length
 				if result.messages.length < limit
 					room.hasMoreNext.set false

		instance = Blaze.getView($('.messages-box .wrapper')[0]).templateInstance()
		instance.atBottom = false

		room.isLoading.set true if setLoading

		lastMessage = ChatMessage.findOne({rid: rid}, {sort: {ts: -1}})



		return histories[rid]

	getMore = (rid, limit=defaultLimit) ->
		room = getRoom rid
		if room.hasMore.curValue isnt true
			return

		room.isLoading.set true

		# ScrollListener.setLoader true
		lastMessage = ChatMessage.findOne({rid: rid}, {sort: {ts: 1}})
