X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=5cbe0c86464a3e339854f49cba8fb6cc28fec1c3;hp=8d8b311aec49988cbda7837515c5c1ae84255536;hb=1511c610b30e524a95c45c8fa263275ec3013101;hpb=e33e50fa2122c1df2aa9d4d15a2f9d75341b0d70 diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 8d8b311a..5cbe0c86 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -812,6 +812,8 @@ export default { const oppsid = this.getOppsid(c); if (oppsid) this.send("refusechallenge", { data: c.id, target: oppsid }); + if (c.type == "corr") + ajax("/challenges", "DELETE", { id: c.id }); } this.send("deletechallenge", { data: c.id }); }, @@ -850,9 +852,8 @@ export default { } else { // My challenge - if (c.type == "corr") { + if (c.type == "corr") ajax("/challenges", "DELETE", { id: c.id }); - } this.send("deletechallenge", { data: c.id }); } // In all cases, the challenge is consumed: