newInstanceDialog disable inviting if friends/invite only

This commit is contained in:
Natsumi
2021-07-15 11:41:38 +12:00
parent 2a56299a0e
commit bba6a9fb99
2 changed files with 3 additions and 28 deletions

View File

@@ -10082,8 +10082,7 @@ speechSynthesis.getVoices();
} else {
tags.push((99999 * Math.random() + 1).toFixed(0));
}
if ((D.userId) &&
(D.accessType !== 'friends') && (D.accessType !== 'invite')) {
if (D.userId) {
var userId = D.userId;
} else {
D.userId = API.currentUser.id;