Skip to content

Add message hint to prevent media from being downloaded.#41

Merged
Half-Shot merged 4 commits into
mainfrom
hs/add-allow-download
Jul 4, 2025
Merged

Add message hint to prevent media from being downloaded.#41
Half-Shot merged 4 commits into
mainfrom
hs/add-allow-download

Conversation

@Half-Shot
Copy link
Copy Markdown
Member

This is a relatively trivial hint to prevent the download button from appearing near media when a module forbids it. Should be used in conjunction with a custom component to prevent displaying media, as otherwise it's easy to circumvent. Takes a Promise as some applications for this would require an async request before allowing downloading to take place.

Comment thread packages/element-web-module-api/src/api/custom-components.ts Outdated
@Half-Shot Half-Shot requested a review from dbkr July 3, 2025 17:41
@Half-Shot Half-Shot merged commit 5c6d6f5 into main Jul 4, 2025
17 checks passed
@Half-Shot Half-Shot deleted the hs/add-allow-download branch July 4, 2025 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants