no chat when playing the AI
This commit is contained in:
parent
60c3b60f92
commit
c008cfe6e0
|
@ -48,7 +48,9 @@ object Round extends LilaController with TheftPrevention {
|
|||
pov.opponent.userId.??(UserRepo.isEngine) zip
|
||||
(analyser has pov.gameId) zip
|
||||
(pov.game.tournamentId ?? TournamentRepo.byId) zip
|
||||
(Env.chat.api.playerChat find pov.gameId map (_ forUser ctx.me)) map {
|
||||
(pov.game.hasChat optionFu {
|
||||
Env.chat.api.playerChat find pov.gameId map (_ forUser ctx.me)
|
||||
}) map {
|
||||
case (((((v, bookmarkers), engine), analysed), tour), chat) ⇒
|
||||
Ok(html.round.player(pov, v, engine, bookmarkers, analysed, chat = chat, tour = tour))
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
@(pov: Pov, version: Int, engine: Boolean, bookmarkers: List[String], analysed: Boolean, chat: lila.chat.MixedChat, tour: Option[lila.tournament.Tournament])(implicit ctx: Context)
|
||||
@(pov: Pov, version: Int, engine: Boolean, bookmarkers: List[String], analysed: Boolean, chat: Option[lila.chat.MixedChat], tour: Option[lila.tournament.Tournament])(implicit ctx: Context)
|
||||
|
||||
@import pov._
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
|||
@round.layout(
|
||||
title = title,
|
||||
goodies = views.html.game.infoBox(pov, tour),
|
||||
chat = base.chat(chat, trans.chatRoom.str()).some,
|
||||
chat = chat.map(c => base.chat(c, trans.chatRoom.str())),
|
||||
underchat = underchat.some,
|
||||
signedJs = pov.game.rated option routes.Round.signedJs(pov.gameId) map (_.toString)) {
|
||||
<div class="lichess_game clearfix lichess_player_@color not_spectator"
|
||||
|
|
Loading…
Reference in a new issue