This commit is contained in:
pypy
2021-01-21 12:55:51 +09:00
parent 0bd5571ede
commit 07bbb7033f

View File

@@ -1093,15 +1093,15 @@ speechSynthesis.getVoices();
if ((this.config.desktopToast) && (this.isGameNoVR)) { if ((this.config.desktopToast) && (this.isGameNoVR)) {
var imageURL = ''; var imageURL = '';
if (noty.userId) { if (noty.userId) {
await API.getCachedUser({ imageURL = await API.getCachedUser({
userId: noty.userId userId: noty.userId
}).catch((err) => { }).catch((err) => {
throw err; throw err;
}).then((args) => { }).then((args) => {
imageURL = args.json.currentAvatarThumbnailImageUrl;
if ((this.config.displayVRCPlusIconsAsAvatar) && (args.json.userIcon)) { if ((this.config.displayVRCPlusIconsAsAvatar) && (args.json.userIcon)) {
imageURL = args.json.userIcon; return args.json.userIcon;
} }
return args.json.currentAvatarThumbnailImageUrl;
}); });
} }
switch (noty.type) { switch (noty.type) {