mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
huh?
This commit is contained in:
+10
-11
@@ -5354,7 +5354,7 @@ speechSynthesis.getVoices();
|
|||||||
((state === 'offline') || (state === 'active')) &&
|
((state === 'offline') || (state === 'active')) &&
|
||||||
(ctx.state === 'online')) {
|
(ctx.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') {
|
||||||
var ts = Date.now();
|
var ts = Date.now();
|
||||||
var time = ts - ctx.ref.$location_at;
|
var time = ts - ctx.ref.$location_at;
|
||||||
@@ -5367,20 +5367,19 @@ speechSynthesis.getVoices();
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((state === 'online')) {
|
|
||||||
if (state === 'online') {
|
if (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 = '';
|
||||||
API.getUser({
|
API.getUser({
|
||||||
userId: id
|
userId: id
|
||||||
}).then((args) => {
|
}).then((args) => {
|
||||||
this.addFeed('Online', args.ref, {
|
this.addFeed('Online', args.ref, {
|
||||||
location: args.ref.location
|
location: args.ref.location
|
||||||
});
|
});
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.addFeed('Online', ctx.ref, {
|
this.addFeed('Online', ctx.ref, {
|
||||||
location: ctx.ref.location
|
location: ctx.ref.location
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user