prevent the following feed from auto-selecting a user under the mobile UI
This commit is contained in:
parent
194bc20af1
commit
a40b77a66b
|
@ -64,14 +64,14 @@ const selectedUserId: Ref<string | null> = ref(null);
|
||||||
|
|
||||||
function listReady(initialUserId?: string): void {
|
function listReady(initialUserId?: string): void {
|
||||||
if (initialUserId && !selectedUserId.value) {
|
if (initialUserId && !selectedUserId.value) {
|
||||||
userSelected(initialUserId);
|
selectedUserId.value = initialUserId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function userSelected(userId: string): void {
|
function userSelected(userId: string): void {
|
||||||
if (userScroll.value?.showing) {
|
selectedUserId.value = userId;
|
||||||
selectedUserId.value = userId;
|
|
||||||
} else {
|
if (!userScroll.value?.showing) {
|
||||||
router.push(`/following-feed/${userId}`);
|
router.push(`/following-feed/${userId}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue