+ let chall =
+ {
+ id: 0, //unknown yet (no ID for live challenges)
+ from: this.st.user,
+ added: Date.now(),
+ fen: this.newchallenge.fen,
+ variant: {id: this.newchallenge.vid, name: vname},
+ nbPlayers: this.newchallenge.nbPlayers,
+ to: [
+ {id: 0, name: this.newchallenge.to[0], sid: ""},
+ {id: 0, name: this.newchallenge.to[1], sid: ""},
+ {id: 0, name: this.newchallenge.to[2], sid: ""},
+ ],
+ timeControl: this.newchallenge.timeControl,
+ mainTime: this.newchallenge.mainTime,
+ increment: this.newchallenge.increment,
+ };
+ for (let p of chall.to)