feat(sync): implement background sync and visibility handling for mobile

This commit is contained in:
2026-02-05 19:20:49 +11:00
parent 1a452f52ca
commit 4ca4af0e8b
3 changed files with 171 additions and 16 deletions

View File

@@ -506,7 +506,7 @@ export const getReactCustomHtmlParser = (
const htmlSrc = mxcUrlToHttp(mx, props.src, params.useAuthentication);
if (htmlSrc && props.src.startsWith('mxc://') === false) {
return (
<a href={htmlSrc} target="_blank" rel="noreferrer noopener">
<a href={htmlSrc} target="_blank" rel="noreferrer noopener" onClick={handleExternalLinkClick}>
{props.alt || props.title || htmlSrc}
</a>
);