mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Invite Message clean up
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user