diff --git a/html/src/app.js b/html/src/app.js
index ebf09a76..88fa5f0e 100644
--- a/html/src/app.js
+++ b/html/src/app.js
@@ -8316,11 +8316,7 @@ speechSynthesis.getVoices();
await API.editInviteMessage(params, messageType, slot).catch((err) => {
throw err;
}).then((args) => {
- return args;
- });
- await API.refreshInviteMessageTableData(messageType).catch((err) => {
- throw err;
- }).then((args) => {
+ this.$emit(`INVITE:${messageType.toUpperCase()}`, args);
if (args.json[slot].message !== D.newMessage) {
this.$message({
message: 'VRChat API didn\'t update message, try again',
@@ -8330,9 +8326,9 @@ speechSynthesis.getVoices();
} else {
this.$message('Invite message updated');
}
+ return args;
});
}
-
var I = this.sendInviteResponseDialog;
var params = {
responseSlot: slot,
@@ -8486,11 +8482,7 @@ speechSynthesis.getVoices();
await API.editInviteMessage(params, messageType, slot).catch((err) => {
throw err;
}).then((args) => {
- return args;
- });
- await API.refreshInviteMessageTableData(messageType).catch((err) => {
- throw err;
- }).then((args) => {
+ this.$emit(`INVITE:${messageType.toUpperCase()}`, args);
if (args.json[slot].message !== D.newMessage) {
this.$message({
message: 'VRChat API didn\'t update message, try again',
@@ -8500,6 +8492,7 @@ speechSynthesis.getVoices();
} else {
this.$message('Invite message updated');
}
+ return args;
});
}
var I = this.sendInviteDialog;
@@ -8511,6 +8504,7 @@ speechSynthesis.getVoices();
this.$message('Invite message sent');
return args;
});
+ this.sendInviteDialogVisible = false;
} else if (I.messageType === 'requestInvite') {
I.params.requestSlot = slot;
API.sendRequestInvite(I.params, I.userId).catch((err) => {
@@ -8519,6 +8513,7 @@ speechSynthesis.getVoices();
this.$message('Request invite message sent');
return args;
});
+ this.sendInviteRequestDialogVisible = false;
}
};