mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 14:23:51 +02:00
Accept request invite
This commit is contained in:
@@ -8155,6 +8155,38 @@ speechSynthesis.getVoices();
|
||||
});
|
||||
};
|
||||
|
||||
$app.methods.acceptRequestInvite = function (row) {
|
||||
this.$confirm('Continue? Send Invite', 'Confirm', {
|
||||
confirmButtonText: 'Confirm',
|
||||
cancelButtonText: 'Cancel',
|
||||
type: 'info',
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
var L = API.parseLocation(this.lastLocation.location);
|
||||
API.getCachedWorld({
|
||||
worldId: L.worldId
|
||||
}).then((args) => {
|
||||
API.sendInvite(
|
||||
{
|
||||
instanceId: this.lastLocation.location,
|
||||
worldId: this.lastLocation.location,
|
||||
worldName: args.ref.name,
|
||||
rsvp: true
|
||||
},
|
||||
row.senderUserId
|
||||
).then((_args) => {
|
||||
this.$message('Invite sent');
|
||||
API.hideNotification({
|
||||
notificationId: row.id
|
||||
});
|
||||
return _args;
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
// Save Table Filters
|
||||
$app.methods.saveTableFilters = function () {
|
||||
configRepository.setString(
|
||||
|
||||
Reference in New Issue
Block a user