mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	if params.count is passed in, min should be 0
This commit is contained in:
		@@ -104,7 +104,7 @@ var db = require('./database'),
 | 
				
			|||||||
			count = params.count || parseInt(meta.config.chatMessageInboxSize, 10) || 250;
 | 
								count = params.count || parseInt(meta.config.chatMessageInboxSize, 10) || 250;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		var uids = sortUids(fromuid, touid),
 | 
							var uids = sortUids(fromuid, touid),
 | 
				
			||||||
			min = Date.now() - (terms[since] || terms.day);
 | 
								min = params.count ? 0 : Date.now() - (terms[since] || terms.day);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (since === 'recent') {
 | 
							if (since === 'recent') {
 | 
				
			||||||
			count = 49;
 | 
								count = 49;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user