mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	recent_topics_ui: Use topics_widget to get number of current rows.
I think this should be more reliable and faster.
This commit is contained in:
		@@ -802,8 +802,7 @@ export function hide() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function is_focus_at_last_table_row() {
 | 
			
		||||
    const $topic_rows = $("#recent_topics_table table tbody tr");
 | 
			
		||||
    return row_focus === $topic_rows.length - 1;
 | 
			
		||||
    return row_focus >= topics_widget.get_current_list().length - 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function has_unread(row) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user