Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

gif_state: Use a better name for rating policy update handler.

apoorvapendseb26056129d68
diff --git a/web/src/gif_state.ts b/web/src/gif_state.ts
index 095913ce37f..f40ed0e3c77 100644
--- a/web/src/gif_state.ts
+++ b/web/src/gif_state.ts
@@ -33,7 +33,7 @@ export function get_rating(): GifRating {
return "g";
}
-export function update_gif_rating_policy(): void {
+export function update_gif_icon_visibility(): void {
// Updating the GIF rating policy would only result in us showing/hiding
// the currently set GIF icon depending on whether the policy is configured
// to `disabled`.
diff --git a/web/src/server_events_dispatch.js b/web/src/server_events_dispatch.js
index 3a54bdb8a59..251c3abdd0b 100644
--- a/web/src/server_events_dispatch.js
+++ b/web/src/server_events_dispatch.js
@@ -334,7 +334,7 @@ export function dispatch_normal_event(event) {
emails_restricted_to_domains: noop,
video_chat_provider: compose_call_ui.update_audio_and_video_chat_button_display,
jitsi_server_url: compose_call_ui.update_audio_and_video_chat_button_display,
- gif_rating_policy: gif_state.update_gif_rating_policy,
+ gif_rating_policy: gif_state.update_gif_icon_visibility,
waiting_period_threshold: noop,
want_advertise_in_communities_directory: noop,
welcome_message_custom_text: noop,