mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	prevent the following feed from auto-selecting a user under the mobile UI
This commit is contained in:
		
							parent
							
								
									194bc20af1
								
							
						
					
					
						commit
						a40b77a66b
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -64,14 +64,14 @@ const selectedUserId: Ref<string | null> = ref(null);
 | 
			
		|||
 | 
			
		||||
function listReady(initialUserId?: string): void {
 | 
			
		||||
	if (initialUserId && !selectedUserId.value) {
 | 
			
		||||
		userSelected(initialUserId);
 | 
			
		||||
		selectedUserId.value = initialUserId;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function userSelected(userId: string): void {
 | 
			
		||||
	if (userScroll.value?.showing) {
 | 
			
		||||
		selectedUserId.value = userId;
 | 
			
		||||
	} else {
 | 
			
		||||
	selectedUserId.value = userId;
 | 
			
		||||
 | 
			
		||||
	if (!userScroll.value?.showing) {
 | 
			
		||||
		router.push(`/following-feed/${userId}`);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue