FEATURE: Chat header icon indicator preference (#20474)

This commit allows the user to set their preference vis-a-vis
the chat icon in the header of the page. There are three options:

- All New (default) - This maintains the existing behaviour where
  all new messages in the channel show a blue dot on the icon
- Direct Messages and Mentions - Only show the green dot on the
  icon when you are directly messaged or mentioned, the blue dot
  is never shown
- Never - Never show any dot on the chat icon, for those who
  want tractor-beam-laser-focus
This commit is contained in:
Martin Brennan
2023-03-01 11:01:44 +10:00
committed by GitHub
parent c051992098
commit d3a1b09361
12 changed files with 170 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
# frozen_string_literal: true
class AddChatHeaderIndicatorPreference < ActiveRecord::Migration[7.0]
def change
add_column :user_options, :chat_header_indicator_preference, :integer, default: 0, null: false
end
end