traveling

This commit is contained in:
Natsumi
2022-06-13 02:26:54 +12:00
parent 36ff14b0e8
commit 21e59264a4
+11 -2
View File
@@ -677,6 +677,7 @@ speechSynthesis.getVoices();
tag: _tag, tag: _tag,
isOffline: false, isOffline: false,
isPrivate: false, isPrivate: false,
isTraveling: false,
worldId: '', worldId: '',
instanceId: '', instanceId: '',
instanceName: '', instanceName: '',
@@ -693,6 +694,8 @@ speechSynthesis.getVoices();
ctx.isOffline = true; ctx.isOffline = true;
} else if (_tag === 'private') { } else if (_tag === 'private') {
ctx.isPrivate = true; ctx.isPrivate = true;
} else if (_tag === 'traveling') {
ctx.isTraveling = true;
} else if (_tag.startsWith('local') === false) { } else if (_tag.startsWith('local') === false) {
var sep = _tag.indexOf(':'); var sep = _tag.indexOf(':');
if (sep >= 0) { if (sep >= 0) {
@@ -843,6 +846,8 @@ speechSynthesis.getVoices();
this.text = 'Offline'; this.text = 'Offline';
} else if (L.isPrivate) { } else if (L.isPrivate) {
this.text = 'Private'; this.text = 'Private';
} else if (L.isTraveling) {
this.text = 'Traveling';
} else if (typeof this.hint === 'string' && this.hint !== '') { } else if (typeof this.hint === 'string' && this.hint !== '') {
if (L.instanceId) { if (L.instanceId) {
this.text = `${this.hint} #${L.instanceName} ${L.accessType}`; this.text = `${this.hint} #${L.instanceName} ${L.accessType}`;
@@ -5716,6 +5721,8 @@ speechSynthesis.getVoices();
text = 'Offline'; text = 'Offline';
} else if (L.isPrivate) { } else if (L.isPrivate) {
text = 'Private'; text = 'Private';
} else if (L.isTraveling) {
text = 'Traveling';
} else if (L.worldId) { } else if (L.worldId) {
if (L.instanceId) { if (L.instanceId) {
text = `${worldName} ${L.accessType}`; text = `${worldName} ${L.accessType}`;
@@ -6733,7 +6740,8 @@ speechSynthesis.getVoices();
typeof ref !== 'undefined' && typeof ref !== 'undefined' &&
ref.location !== '' && ref.location !== '' &&
ref.location !== 'offline' && ref.location !== 'offline' &&
ref.location !== 'private' ref.location !== 'private' &&
ref.location !== 'traveling'
) { ) {
API.getUser({ API.getUser({
userId: id userId: id
@@ -15489,7 +15497,8 @@ speechSynthesis.getVoices();
if ( if (
location === '' || location === '' ||
location === 'offline' || location === 'offline' ||
location === 'private' location === 'private' ||
location === 'traveling'
) { ) {
return false; return false;
} }