Touch ups

This commit is contained in:
Natsumi
2024-06-27 08:34:49 +12:00
parent d5ef12a99b
commit ddd064076a
4 changed files with 36 additions and 37 deletions

View File

@@ -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;