mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
settings: Add setting to control how animated images are played.
Previously animated images were automatically played in the message feed of the web app. Now that we have still thumbnails available for them, we can add a new personal setting, "web_animate_image_previews", which controls how the animated images would be played in the web app message feed -- always played, on hover, or only in the image viewer. Fixes #31016.
This commit is contained in:
@@ -728,6 +728,7 @@ export function dispatch_normal_event(event) {
|
||||
"translate_emoticons",
|
||||
"display_emoji_reaction_users",
|
||||
"user_list_style",
|
||||
"web_animate_image_previews",
|
||||
"web_stream_unreads_count_display_policy",
|
||||
"starred_message_counts",
|
||||
"send_stream_typing_notifications",
|
||||
@@ -779,6 +780,12 @@ export function dispatch_normal_event(event) {
|
||||
stream_list.update_streams_sidebar();
|
||||
stream_list_sort.set_filter_out_inactives();
|
||||
}
|
||||
if (event.property === "web_animate_image_previews") {
|
||||
// Rerender the whole message list UI
|
||||
for (const msg_list of message_lists.all_rendered_message_lists()) {
|
||||
msg_list.rerender();
|
||||
}
|
||||
}
|
||||
if (event.property === "web_stream_unreads_count_display_policy") {
|
||||
stream_list.update_dom_unread_counts_visibility();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user