mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-28 21:28:19 +01: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…
Reference in a new issue