mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
Fix empty GPS while friend is coming online
This commit is contained in:
@@ -295,9 +295,18 @@ export default class extends baseClass {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.$emit('FRIEND:STATE', {
|
||||
this.$emit('USER', {
|
||||
json: {
|
||||
state: 'active'
|
||||
id: content.userId,
|
||||
platform: content.platform,
|
||||
state: 'active',
|
||||
|
||||
location: 'offline',
|
||||
worldId: 'offline',
|
||||
instanceId: 'offline',
|
||||
travelingToLocation: 'offline',
|
||||
travelingToWorld: 'offline',
|
||||
travelingToInstance: 'offline'
|
||||
},
|
||||
params: {
|
||||
userId: content.userId
|
||||
@@ -307,9 +316,19 @@ export default class extends baseClass {
|
||||
break;
|
||||
|
||||
case 'friend-offline':
|
||||
this.$emit('FRIEND:STATE', {
|
||||
// more JANK, hell yeah
|
||||
this.$emit('USER', {
|
||||
json: {
|
||||
state: 'offline'
|
||||
id: content.userId,
|
||||
platform: content.platform,
|
||||
state: 'offline',
|
||||
|
||||
location: 'offline',
|
||||
worldId: 'offline',
|
||||
instanceId: 'offline',
|
||||
travelingToLocation: 'offline',
|
||||
travelingToWorld: 'offline',
|
||||
travelingToInstance: 'offline'
|
||||
},
|
||||
params: {
|
||||
userId: content.userId
|
||||
@@ -348,8 +367,8 @@ export default class extends baseClass {
|
||||
json: {
|
||||
location: content.location,
|
||||
travelingToLocation: content.travelingToLocation,
|
||||
...content.user
|
||||
// state: 'online'
|
||||
...content.user,
|
||||
state: 'online' // JANK
|
||||
},
|
||||
params: {
|
||||
userId: content.userId
|
||||
|
||||
Reference in New Issue
Block a user