diff --git a/html/app.js b/html/app.js index b07ac77c8..aa299ec22 100644 --- a/html/app.js +++ b/html/app.js @@ -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: { @@ -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; } }); @@ -3414,7 +3463,7 @@ if (window.CefSharp) { VRCX, nextRefresh: 0, isGameRunning: false, - appVersion: '2019.09.04', + appVersion: '2019.09.23', latestAppVersion: '', ossDialog: false },