This commit is contained in:
pypy
2021-01-21 12:41:19 +09:00
parent d6e8b2a48d
commit 62e2061d9f
+6 -6
View File
@@ -4216,14 +4216,14 @@ speechSynthesis.getVoices();
this.friendsGroupD_.unshift(ctx); this.friendsGroupD_.unshift(ctx);
} }
if (ctx.ref !== undefined) { if (ctx.ref !== undefined) {
if ((ctx.ref.$offline_for == '') && if ((ctx.ref.$offline_for === '') &&
((ctx.state == 'offline') && ctx.ref.state == '') || ((ctx.state === 'offline') && ctx.ref.state === '') ||
(((ctx.state == 'offline') || (ctx.state == 'active')) && (((ctx.state === 'offline') || (ctx.state === 'active')) &&
((ctx.ref.state == 'online')))) { ((ctx.ref.state === 'online')))) {
ctx.ref.$online_for = ''; ctx.ref.$online_for = '';
ctx.ref.$offline_for = Date.now(); ctx.ref.$offline_for = Date.now();
} }
if (ctx.state == 'online') { if (ctx.state === 'online') {
ctx.ref.$location_at = Date.now(); ctx.ref.$location_at = Date.now();
ctx.ref.$online_for = Date.now(); ctx.ref.$online_for = Date.now();
ctx.ref.$offline_for = ''; ctx.ref.$offline_for = '';
@@ -7914,7 +7914,7 @@ speechSynthesis.getVoices();
}); });
$app.methods.setVRCPlusIcon = function (userIcon) { $app.methods.setVRCPlusIcon = function (userIcon) {
if (userIcon != '') { if (userIcon !== '') {
userIcon = `https://api.vrchat.cloud/api/1/file/${userIcon}/1`; userIcon = `https://api.vrchat.cloud/api/1/file/${userIcon}/1`;
} }
API.setVRCPlusIcon({ API.setVRCPlusIcon({