Fix empty displayName in gameLog + Fix progress pie filter

This commit is contained in:
Natsumi
2021-10-29 17:01:01 +13:00
parent 208a71a045
commit 83dbf0d50f
4 changed files with 30 additions and 23 deletions

View File

@@ -8244,6 +8244,9 @@ speechSynthesis.getVoices();
this.showUserDialog(ref.userId);
return;
}
if (!ref.displayname) {
return;
}
for (var ctx of API.cachedUsers.values()) {
if (ctx.displayName === ref.displayName) {
this.showUserDialog(ctx.id);
@@ -9852,6 +9855,21 @@ speechSynthesis.getVoices();
if (this.isDarkMode) {
notificationTheme = 'sunset';
}
var VRConfigVars = {
overlayNotifications: this.overlayNotifications,
hideDevicesFromFeed: this.hideDevicesFromFeed,
minimalFeed: this.minimalFeed,
notificationPosition: this.notificationPosition,
notificationTimeout: this.notificationTimeout,
notificationTheme,
backgroundEnabled: this.vrBackgroundEnabled
};
var json = JSON.stringify(VRConfigVars);
AppApi.ExecuteVrFeedFunction('configUpdate', json);
AppApi.ExecuteVrOverlayFunction('configUpdate', json);
};
$app.methods.updateVRLastLocation = function () {
var progressPie = false;
if (this.progressPie) {
progressPie = true;
@@ -9866,28 +9884,13 @@ speechSynthesis.getVoices();
}
}
}
var VRConfigVars = {
overlayNotifications: this.overlayNotifications,
hideDevicesFromFeed: this.hideDevicesFromFeed,
minimalFeed: this.minimalFeed,
notificationPosition: this.notificationPosition,
notificationTimeout: this.notificationTimeout,
notificationTheme,
backgroundEnabled: this.vrBackgroundEnabled,
progressPie
};
var json = JSON.stringify(VRConfigVars);
AppApi.ExecuteVrFeedFunction('configUpdate', json);
AppApi.ExecuteVrOverlayFunction('configUpdate', json);
};
$app.methods.updateVRLastLocation = function () {
var lastLocation = {
date: this.lastLocation.date,
location: this.lastLocation.location,
name: this.lastLocation.name,
playerList: Array.from(this.lastLocation.playerList.values()),
friendList: Array.from(this.lastLocation.friendList.values())
friendList: Array.from(this.lastLocation.friendList.values()),
progressPie
};
var json = JSON.stringify(lastLocation);
AppApi.ExecuteVrFeedFunction('lastLocationUpdate', json);