Fix invite to group dialog, clean up userNotes

This commit is contained in:
Natsumi
2025-06-14 12:28:49 +12:00
parent a4417a7c90
commit aac2418add
3 changed files with 18 additions and 3 deletions

View File

@@ -2001,6 +2001,14 @@ console.log(`isLinux: ${LINUX}`);
API.$on('LOGIN', function () {
$app.localFavoriteFriends.clear();
$app.currentUserGroupsInit = false;
this.cachedGroups.clear();
this.cachedAvatars.clear();
this.cachedWorlds.clear();
this.cachedUsers.clear();
this.cachedInstances.clear();
this.cachedAvatarNames.clear();
this.cachedAvatarModerations.clear();
this.cachedPlayerModerations.clear();
this.cachedFavorites.clear();
this.cachedFavoritesByObjectId.clear();
this.cachedFavoriteGroups.clear();
@@ -5682,6 +5690,9 @@ console.log(`isLinux: ${LINUX}`);
if (ctx.friendNumber) {
ref.$friendNumber = ctx.friendNumber;
}
if (!ref.$friendNumber) {
ref.$friendNumber = 0; // no null
}
if (ctx.displayName !== ref.displayName) {
if (ctx.displayName) {
var friendLogHistoryDisplayName = {