xmpp.chapril.org-conversejs/src/headless/utils
JC Brand 366932e999 Allow render_media setting to be an array of domains
This allows for more flexibility in configuring which media URLs will
automatically render and which media URLs may be manually rendered by
the user (via the message actions dropdown).

For example, suppose you want to automatically render all media URLs
from https://xmpp.org, but still allow other media (which won't render
by default) to be rendered manually by the user (by clicking the "Show
URL previews" message dropdown action).

In this case, you set `render_media` to `['xmpp.org']` and
`allowed_image_domains` to `null` or `undefined`.

Or if you want to automatically render images from xmpp.org, and
restrict the domains users might manually click to render, you can add
those extra domains to `allowed_image_domains`.
2021-09-30 16:30:30 +02:00
..
arraybuffer.js Add support for decrypting XEP-0454 OMEMO media 2021-06-25 09:24:18 +02:00
core.js Move isUniView function to utils 2021-09-29 12:03:21 +02:00
form.js Remove need for lodash templates in headless build 2020-09-26 09:58:34 +02:00
init.js Adds hook to fetchLoginCredentials function (#2640) 2021-09-10 16:12:46 +02:00
parse-helpers.js Bugfix. Properly escape | character in mentioned nicknames 2021-05-19 14:47:20 +02:00
storage.js Allow media to be invidually shown/rendered... 2021-09-21 17:08:30 +02:00
url.js Allow render_media setting to be an array of domains 2021-09-30 16:30:30 +02:00