mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
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:
parent
3b1c4e19a4
commit
64e19085b4
1 changed files with 4 additions and 1 deletions
|
@ -773,6 +773,9 @@ const ProjectController = {
|
|||
})
|
||||
}
|
||||
|
||||
const wantsOldChatUI =
|
||||
req.query && req.query.new_chat_ui === 'false'
|
||||
|
||||
res.render('project/editor', {
|
||||
title: project.name,
|
||||
priority_title: true,
|
||||
|
@ -829,7 +832,7 @@ const ProjectController = {
|
|||
wsUrl,
|
||||
showSupport: Features.hasFeature('support'),
|
||||
showNewLogsUI: req.query && req.query.new_logs_ui === 'true',
|
||||
showNewChatUI: req.query && req.query.new_chat_ui === 'true'
|
||||
showNewChatUI: user.betaProgram && !wantsOldChatUI
|
||||
})
|
||||
timer.done()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue