diff --git a/html/app.js b/html/app.js index de150893..644e2880 100644 --- a/html/app.js +++ b/html/app.js @@ -911,6 +911,7 @@ CefSharp.BindObjectAsync( ref }); } + VRCXStorage.SetObject('currentUser', ref); return ref; }; diff --git a/html/vr.js b/html/vr.js index 28e99835..df6aeea5 100644 --- a/html/vr.js +++ b/html/vr.js @@ -653,6 +653,7 @@ CefSharp.BindObjectAsync( $app.methods.update = function () { this.currentTime = new Date().toJSON(); + this.currentUser = VRCXStorage.GetObject('currentUser') || {}; VRCX.CpuUsage().then((cpuUsage) => { this.cpuUsage = cpuUsage.toFixed(2); }); @@ -688,6 +689,10 @@ CefSharp.BindObjectAsync( } } }); + // disable notification on busy + if (this.currentUser.status === 'busy') { + return; + } var notys = []; this.feeds.forEach((feed) => { if (feed.isFavorite) {