DEV: Remove chat related code from core (#23750)

I'm not sure why this is necessary and it doesn't seem to affect
anything if I remove it. Either way, we shouldn't have plugin related
code polluting core.
This commit is contained in:
Alan Guo Xiang Tan 2023-10-03 09:20:25 +08:00 committed by GitHub
parent e6bc74acc8
commit 1c489bdbcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View File

@ -4,10 +4,7 @@ RSpec.describe TopicTrackingStateItemSerializer do
fab!(:user) { Fabricate(:user) }
fab!(:post) { create_post }
before do
SiteSetting.navigation_menu = "legacy"
SiteSetting.chat_enabled = false if defined?(::Chat)
end
before { SiteSetting.navigation_menu = "legacy" }
it "serializes topic tracking state reports" do
report = TopicTrackingState.report(user)

View File

@ -13,10 +13,7 @@ RSpec.describe WebHookUserSerializer do
WebHookUserSerializer.new(user, scope: Guardian.new(admin), root: false)
end
before do
SiteSetting.navigation_menu = "legacy"
SiteSetting.chat_enabled = false if defined?(::Chat)
end
before { SiteSetting.navigation_menu = "legacy" }
it "should include relevant user info" do
payload = serializer.as_json