 				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

				readMessage.refreshUnreadMark(rid, true)
				RoomManager.updateMentionsMarksOfRoom typeName

			room.isLoading.set false if setLoading
			room.loaded += result?.messages?.length
			if result?.messages?.length < limit
				room.hasMore.set false

	getMoreNext = (rid, limit=defaultLimit, setLoading=true) ->
		room = getRoom rid
		if room.hasMoreNext.curValue isnt true
			return

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

		room.isLoading.set true

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

