mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-05 23:29:00 +02: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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user