Bug fixes

This commit is contained in:
Natsumi
2022-02-02 20:55:37 +13:00
parent 1ed6bf57b4
commit ae06b9b708
2 changed files with 37 additions and 18 deletions

View File

@@ -8006,10 +8006,11 @@ speechSynthesis.getVoices();
database.addGamelogPortalSpawnToDatabase(entry);
break;
case 'video-play':
if (this.lastVideoUrl === gameLog.videoUrl) {
var videoUrl = encodeURI(gameLog.videoUrl);
if (this.lastVideoUrl === videoUrl) {
return;
}
this.lastVideoUrl = gameLog.videoUrl;
this.lastVideoUrl = videoUrl;
this.addGameLogVideo(gameLog, location, userId);
return;
case 'video-sync':
@@ -9793,9 +9794,17 @@ speechSynthesis.getVoices();
};
$app.methods.search = function () {
this.searchUser();
this.searchWorld({});
this.searchAvatar();
switch (this.$refs.searchTab.currentName) {
case '0':
this.searchUser();
break;
case '1':
this.searchWorld({});
break;
case '2':
this.searchAvatar();
break;
}
};
$app.methods.searchUser = async function () {
@@ -10428,6 +10437,7 @@ speechSynthesis.getVoices();
database.setFriendLogCurrent(friendLogCurrent);
this.notifyMenu('friendLog');
this.deleteFriendRequest(id);
this.updateSharedFeed(true);
}
};
@@ -10461,6 +10471,7 @@ speechSynthesis.getVoices();
this.friendLog.delete(id);
database.deleteFriendLogCurrent(id);
this.notifyMenu('friendLog');
this.updateSharedFeed(true);
};
$app.methods.updateFriendships = function (ref) {
@@ -10513,6 +10524,7 @@ speechSynthesis.getVoices();
database.setFriendLogCurrent(friendLogCurrent);
ctx.displayName = ref.displayName;
this.notifyMenu('friendLog');
this.updateSharedFeed(true);
}
if (
ref.$trustLevel &&
@@ -10538,6 +10550,7 @@ speechSynthesis.getVoices();
this.friendLog.set(ref.id, friendLogCurrent);
database.setFriendLogCurrent(friendLogCurrent);
this.notifyMenu('friendLog');
this.updateSharedFeed(true);
}
ctx.trustLevel = ref.$trustLevel;
};
@@ -12690,8 +12703,11 @@ speechSynthesis.getVoices();
break;
}
}
if (addUser && API.cachedUsers.has(friend.userId)) {
users.push(API.cachedUsers.get(friend.userId));
if (addUser) {
var ref = API.cachedUsers.get(friend.userId);
if (typeof ref !== 'undefined') {
users.push(ref);
}
}
}
friendCount = users.length - 1;
@@ -13678,7 +13694,9 @@ speechSynthesis.getVoices();
L.user = ref;
}
}
instance.friendCount = instance.users.length;
if (instance.friendCount === 0) {
instance.friendCount = instance.users.length;
}
instance.users.sort(compareByLocationAt);
rooms.push(instance);
}
@@ -14133,7 +14151,7 @@ speechSynthesis.getVoices();
if (!avatarId) {
avatarId = await this.checkAvatarCacheRemote(
fileId,
ownerUserId
avatarInfo.ownerId
);
}
if (!avatarId) {