Revert "fix user TV" - REVERT ME

This reverts commit 4ecff8967e.
This commit is contained in:
Thibault Duplessis 2017-03-03 12:19:18 +01:00
parent b61a774bf6
commit 65f076cfe1
4 changed files with 4 additions and 4 deletions

View file

@ -170,7 +170,7 @@ object Round extends LilaController with TheftPrevention {
Env.api.roundApi.watcher( Env.api.roundApi.watcher(
pov, pov,
lila.api.Mobile.Api.currentVersion, lila.api.Mobile.Api.currentVersion,
tv = userTv.map { u => lila.round.OnUserTv(u.id) } tv = userTv.map { u => lila.round.OnUserTv(u.username) }
) zip ) zip
Env.bookmark.api.exists(pov.game, ctx.me) map { Env.bookmark.api.exists(pov.game, ctx.me) map {
case tour ~ simul ~ chat ~ crosstable ~ data ~ bookmarked => case tour ~ simul ~ chat ~ crosstable ~ data ~ bookmarked =>

View file

@ -204,7 +204,7 @@ final class JsonView(
} }
).add( ).add(
"userTv" -> tv.collect { "userTv" -> tv.collect {
case OnUserTv(userId) => Json.obj("id" -> userId) case OnUserTv(name) => Json.obj("name" -> name)
} }
) )

View file

@ -958,7 +958,7 @@ lichess.notifyApp = (function() {
name: "round" name: "round"
}, },
params: { params: {
userTv: data.userTv && data.userTv.id userTv: data.userTv && data.userTv.name
}, },
receive: function(t, d) { receive: function(t, d) {
round.socketReceive(t, d); round.socketReceive(t, d);

View file

@ -12,7 +12,7 @@ module.exports = function(element, cfg) {
name: "analyse" name: "analyse"
}, },
params: { params: {
userTv: data.userTv && data.userTv.id userTv: data.userTv && data.userTv.name
}, },
receive: function(t, d) { receive: function(t, d) {
analyse.socketReceive(t, d); analyse.socketReceive(t, d);