Merge branch 'thread-line' into 'develop'

Thread fixes

See merge request soapbox-pub/soapbox!2507
This commit is contained in:
Alex Gleason 2023-05-08 16:09:16 +00:00
commit f4c7ab5dd6
2 changed files with 6 additions and 3 deletions

View file

@ -242,7 +242,8 @@ export const fetchOwnAccounts = () =>
return state.auth.users.forEach((user) => {
const account = state.accounts.get(user.id);
if (!account) {
dispatch(verifyCredentials(user.access_token, user.url));
dispatch(verifyCredentials(user.access_token, user.url))
.catch(() => console.warn(`Failed to load account: ${user.url}`));
}
});
};

View file

@ -404,7 +404,7 @@ const Thread: React.FC<IThread> = (props) => {
useEffect(() => {
scroller.current?.scrollToIndex({
index: ancestorsIds.size,
offset: -140,
offset: -146,
});
setImmediate(() => statusRef.current?.querySelector<HTMLDivElement>('.detailed-actualStatus')?.focus());
@ -443,7 +443,9 @@ const Thread: React.FC<IThread> = (props) => {
);
} else if (!status) {
return (
<PlaceholderStatus />
<Column>
<PlaceholderStatus />
</Column>
);
}