parent
b61a774bf6
commit
65f076cfe1
|
@ -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 =>
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue