Skip to content

A platform for community discussion. Free, open, simple.

DEV: Namespace chat_header_indicator UserOption enum (#22152)

David Taylor6e143c615760
diff --git a/plugins/chat/lib/chat/user_option_extension.rb b/plugins/chat/lib/chat/user_option_extension.rb
index 30b0ad8126f..290f6361d55 100644
--- a/plugins/chat/lib/chat/user_option_extension.rb
+++ b/plugins/chat/lib/chat/user_option_extension.rb
@@ -22,8 +22,10 @@ module Chat
base.enum :chat_email_frequency, base.chat_email_frequencies, prefix: "send_chat_email"
end
- if !base.method_defined?(:never?) # Avoid attempting to override when autoloading
- base.enum :chat_header_indicator_preference, base.chat_header_indicator_preferences
+ if !base.method_defined?(:chat_header_indicator_never?) # Avoid attempting to override when autoloading
+ base.enum :chat_header_indicator_preference,
+ base.chat_header_indicator_preferences,
+ prefix: "chat_header_indicator"
end
end
end