Fix and improve auto accept invite requests (#999)

This commit is contained in:
SemmieDev
2024-12-01 12:00:39 +01:00
committed by GitHub
parent 5e6c611264
commit 4a52fbf3a0

View File

@@ -7376,7 +7376,7 @@ speechSynthesis.getVoices();
) {
return;
}
if (!$utils.checkCanInvite(currentLocation)) {
if (!$app.checkCanInvite(currentLocation)) {
return;
}
@@ -7395,6 +7395,9 @@ speechSynthesis.getVoices();
)
.then((_args) => {
$app.$message(`Auto invite sent to ${ref.senderUsername}`);
API.hideNotification({
notificationId: ref.id
});
return _args;
})
.catch((err) => {