mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 10:47:34 +08:00

Adds a one-click chat reactions setting to the chat preferences page where members can determine what one-click reactions are shown in chat. - Frequent: This will be the default setting. (Automatically set based on most used chat reactions) - Custom: Members can choose up to three reactions they want to see in their one-click chat/DM reactions menu. Defaults are `❤️`, `👍` , and `😄`.  This pull request is essentially the work of @dsims in https://github.com/discourse/discourse/pull/31761 --------- Co-authored-by: dsims <1041068+dsims@users.noreply.github.com>
20 lines
556 B
Ruby
20 lines
556 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.describe UserOption do
|
|
describe "#chat_separate_sidebar_mode" do
|
|
it "is present" do
|
|
expect(described_class.new.chat_separate_sidebar_mode).to eq("default")
|
|
end
|
|
end
|
|
describe "#show_thread_title_prompts" do
|
|
it "is present" do
|
|
expect(described_class.new.show_thread_title_prompts).to eq(true)
|
|
end
|
|
end
|
|
describe "#chat_quick_reaction_type" do
|
|
it "is present with frequent as default" do
|
|
expect(described_class.new.chat_quick_reaction_type).to eq("frequent")
|
|
end
|
|
end
|
|
end
|