Skip to content

Commit

Permalink
v2019.09.23
Browse files Browse the repository at this point in the history
  • Loading branch information
pypy committed Sep 23, 2019
1 parent 0302837 commit 0b5ed2f
Showing 1 changed file with 50 additions and 1 deletion.
51 changes: 50 additions & 1 deletion html/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3175,6 +3175,35 @@ if (window.CefSharp) {
});
break;

case 'friend-location':
if (content.world) {
API.$emit('WORLD', {
param: {
worldId: content.world.id
},
json: content.world
});
}
if (content.userId === API.currentUser.id) {
API.$emit('USER', {
param: {
userId: content.userId
},
json: content.user
});
} else {
API.$emit('USER', {
param: {
userId: content.userId
},
json: {
location: content.location,
...content.user
}
});
}
break;

case 'user-update':
API.$emit('USER:CURRENT', {
param: {
Expand All @@ -3183,6 +3212,26 @@ if (window.CefSharp) {
json: content.user
});
break;

case 'user-location':
if (content.world) {
API.$emit('WORLD', {
param: {
worldId: content.world.id
},
json: content.world
});
}
API.$emit('USER', {
param: {
userId: content.userId
},
json: {
id: content.userId,
location: content.location
}
});
break;
}
});

Expand Down Expand Up @@ -3414,7 +3463,7 @@ if (window.CefSharp) {
VRCX,
nextRefresh: 0,
isGameRunning: false,
appVersion: '2019.09.04',
appVersion: '2019.09.23',
latestAppVersion: '',
ossDialog: false
},
Expand Down

0 comments on commit 0b5ed2f

Please sign in to comment.