mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
Touch ups
This commit is contained in:
@@ -14901,31 +14901,29 @@ speechSynthesis.getVoices();
|
||||
)
|
||||
return;
|
||||
|
||||
if (!this.checkCanInvite(currentLocation))
|
||||
return;
|
||||
if (!this.checkCanInvite(currentLocation)) return;
|
||||
|
||||
var L = this.parseLocation(currentLocation);
|
||||
|
||||
try {
|
||||
this.getCachedWorld({
|
||||
worldId: L.worldId
|
||||
}).then((args1) => {
|
||||
this.sendInvite(
|
||||
{
|
||||
instanceId: L.tag,
|
||||
worldId: L.tag,
|
||||
worldName: args1.ref.name,
|
||||
rsvp: true
|
||||
},
|
||||
ref.senderUserId
|
||||
).then((_args) => {
|
||||
this.getCachedWorld({
|
||||
worldId: L.worldId
|
||||
}).then((args1) => {
|
||||
this.sendInvite(
|
||||
{
|
||||
instanceId: L.tag,
|
||||
worldId: L.tag,
|
||||
worldName: args1.ref.name,
|
||||
rsvp: true
|
||||
},
|
||||
ref.senderUserId
|
||||
)
|
||||
.then((_args) => {
|
||||
$app.$message(`Auto invite sent to ${ref.senderUsername}`);
|
||||
return _args;
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error(err);
|
||||
});
|
||||
});
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$app.data.unseenNotifications = [];
|
||||
@@ -22432,12 +22430,18 @@ speechSynthesis.getVoices();
|
||||
|
||||
$app.watch.friendsListBulkUnfriendMode = (newV) => {
|
||||
if (!newV) {
|
||||
$app.friendsListTable.data.forEach(i => delete i.$selected);
|
||||
$app.friendsListTable.data.forEach((i) => delete i.$selected);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
$app.methods.showBulkUnfriendSelectionConfirm = function () {
|
||||
var pendingUnfriendList = this.friendsListTable.data.reduce(
|
||||
(acc, ctx, i) => (ctx.$selected && acc.push(ctx.displayName), acc),
|
||||
(acc, ctx) => {
|
||||
if (ctx.$selected) {
|
||||
acc.push(ctx.displayName);
|
||||
}
|
||||
return acc;
|
||||
},
|
||||
[]
|
||||
);
|
||||
var elementsTicked = pendingUnfriendList.length;
|
||||
|
||||
Reference in New Issue
Block a user