X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=5217c34de312a0b4bc4eddc3f05c6b494fab2a2d;hp=ac2e26ecf8c8f6e68f13ca9ae28703b4f7e639f0;hb=cafe016679ee9c14bf7bf0a37104ade7f74aff89;hpb=584f81b93154313a3856112400b7df98e0eb2632 diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index ac2e26ec..5217c34d 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -324,6 +324,8 @@ export default { params.socketUrl + "/?sid=" + this.st.user.sid + + "&id=" + + this.st.user.id + "&tmpId=" + getRandString() + "&page=" + @@ -977,6 +979,16 @@ export default { // Send game info (only if live) to everyone except me and opponent // TODO: this double message send could be avoided. this.send("newgame", { data: gameInfo, oppsid: oppsid }); + // Also to MyGames page: + this.send( + "notifynewgame", + { + data: gameInfo, + targets: gameInfo.players.map(p => { + return { sid: p.sid, uid: p.uid }; + }) + } + ); }; if (c.type == "live") { notifyNewgame();