From 81c71388a711ac3fb99f5376dc96631e2cc801f9 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Sun, 21 Feb 2021 18:34:51 +1300 Subject: [PATCH] Fix invite message update check --- html/src/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/src/app.js b/html/src/app.js index d365a610..87ad8111 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -8984,7 +8984,7 @@ speechSynthesis.getVoices(); throw err; }).then((args) => { API.$emit(`INVITE:${messageType.toUpperCase()}`, args); - if (args.json[slot].message !== D.newMessage) { + if (args.json[slot].message === D.inviteMessage.message) { this.$message({ message: 'VRChat API didn\'t update message, try again', type: 'error' @@ -9034,7 +9034,7 @@ speechSynthesis.getVoices(); throw err; }).then((args) => { API.$emit(`INVITE:${messageType.toUpperCase()}`, args); - if (args.json[slot].message !== D.newMessage) { + if (args.json[slot].message === D.inviteMessage.message) { this.$message({ message: 'VRChat API didn\'t update message, try again', type: 'error' @@ -9225,7 +9225,7 @@ speechSynthesis.getVoices(); throw err; }).then((args) => { API.$emit(`INVITE:${messageType.toUpperCase()}`, args); - if (args.json[slot].message !== D.newMessage) { + if (args.json[slot].message === D.inviteMessage.message) { this.$message({ message: 'VRChat API didn\'t update message, try again', type: 'error'