mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-20 23:33:50 +02:00
Disable invite button for friends/invite only instances to reflect API
This commit is contained in:
@@ -12938,6 +12938,17 @@ speechSynthesis.getVoices();
|
||||
return text;
|
||||
};
|
||||
|
||||
$app.methods.checkCanInvite = function (location) {
|
||||
var L = API.parseLocation(location);
|
||||
if ((L.accessType === 'invite') || (L.accessType === 'friends')) {
|
||||
if (L.userId === API.currentUser.id) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
$app = new Vue($app);
|
||||
window.$app = $app;
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user