mirror of
https://github.com/zulip/zulip.git
synced 2026-07-06 21:18:58 +08:00
Presently in a session when an image or video title is updated, the same change is not reflected in the lightbox view of them, until a new session is made. This is because the metadata of the media is stored in Map for the session with the preview_src as keys, and hence, when title is changed the preview_src being same, the title change is not reflected inside lightbox view. This is fixed by modifing the asset_map (cache map) keys from preview_src to an array of preview_src, and the media title. Hence, when title is modified now, the keys won't map to the existing value, and hence new metadata would be shown. A new function get_asset_map_key_for_media() introduced to get the corresponing metadata from this asset_map by passing in the prview_src and media elements. Fixes #21311 |
||
|---|---|---|
| .. | ||
| e2e-tests | ||
| generated | ||
| html | ||
| images | ||
| shared | ||
| src | ||
| styles | ||
| templates | ||
| tests | ||
| third | ||
| .browserslistrc | ||
| .gitignore | ||
| babel.config.js | ||
| debug-require-webpack-plugin.ts | ||
| debug-require.js | ||
| postcss.config.js | ||
| webpack.assets.json | ||
| webpack.config.ts | ||
| webpack.dev-assets.json | ||