Merge pull request #3404 from overleaf/msm-enable-react-chat-beta

Enable React Chat for beta users

GitOrigin-RevId: 3805d73fdb4521eba1555f25d6b8c48a45a81ff4
This commit is contained in:
Miguel Serrano 2020-11-24 12:59:03 +01:00 committed by Copybot
parent 3b1c4e19a4
commit 64e19085b4

View file

@ -773,6 +773,9 @@ const ProjectController = {
}) })
} }
const wantsOldChatUI =
req.query && req.query.new_chat_ui === 'false'
res.render('project/editor', { res.render('project/editor', {
title: project.name, title: project.name,
priority_title: true, priority_title: true,
@ -829,7 +832,7 @@ const ProjectController = {
wsUrl, wsUrl,
showSupport: Features.hasFeature('support'), showSupport: Features.hasFeature('support'),
showNewLogsUI: req.query && req.query.new_logs_ui === 'true', showNewLogsUI: req.query && req.query.new_logs_ui === 'true',
showNewChatUI: req.query && req.query.new_chat_ui === 'true' showNewChatUI: user.betaProgram && !wantsOldChatUI
}) })
timer.done() timer.done()
} }