mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
UX: Let users know they disabled discobot and they can't interact with it. (#12534)
Discobot will reply to users they need to enable onboarding tips to interact with them when issued a command.
This commit is contained in:
@ -167,4 +167,12 @@ describe User do
|
||||
expect(DiscourseNarrativeBot::Store.get(user.id)).to eq(nil)
|
||||
end
|
||||
end
|
||||
|
||||
describe '#manually_disabled_discobot?' do
|
||||
it 'returns true if the user manually disabled new user tips' do
|
||||
user.user_option.skip_new_user_tips = true
|
||||
|
||||
expect(user.manually_disabled_discobot?).to eq(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user