prevent the following feed from auto-selecting a user under the mobile UI

This commit is contained in:
Hazelnoot 2024-11-02 10:54:10 -04:00
parent 194bc20af1
commit a40b77a66b

View file

@ -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 {
if (!userScroll.value?.showing) {
router.push(`/following-feed/${userId}`);
}
}