mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 14:46:04 +02:00
Fix invite to group dialog, clean up userNotes
This commit is contained in:
+11
@@ -2001,6 +2001,14 @@ console.log(`isLinux: ${LINUX}`);
|
|||||||
API.$on('LOGIN', function () {
|
API.$on('LOGIN', function () {
|
||||||
$app.localFavoriteFriends.clear();
|
$app.localFavoriteFriends.clear();
|
||||||
$app.currentUserGroupsInit = false;
|
$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.cachedFavorites.clear();
|
||||||
this.cachedFavoritesByObjectId.clear();
|
this.cachedFavoritesByObjectId.clear();
|
||||||
this.cachedFavoriteGroups.clear();
|
this.cachedFavoriteGroups.clear();
|
||||||
@@ -5682,6 +5690,9 @@ console.log(`isLinux: ${LINUX}`);
|
|||||||
if (ctx.friendNumber) {
|
if (ctx.friendNumber) {
|
||||||
ref.$friendNumber = ctx.friendNumber;
|
ref.$friendNumber = ctx.friendNumber;
|
||||||
}
|
}
|
||||||
|
if (!ref.$friendNumber) {
|
||||||
|
ref.$friendNumber = 0; // no null
|
||||||
|
}
|
||||||
if (ctx.displayName !== ref.displayName) {
|
if (ctx.displayName !== ref.displayName) {
|
||||||
if (ctx.displayName) {
|
if (ctx.displayName) {
|
||||||
var friendLogHistoryDisplayName = {
|
var friendLogHistoryDisplayName = {
|
||||||
|
|||||||
@@ -9,9 +9,10 @@ const userNotes = {
|
|||||||
notes: new Map(),
|
notes: new Map(),
|
||||||
|
|
||||||
async init() {
|
async init() {
|
||||||
try {
|
|
||||||
this.lastNoteCheck = new Date();
|
this.lastNoteCheck = new Date();
|
||||||
|
this.lastDbNoteDate = null;
|
||||||
this.notes.clear();
|
this.notes.clear();
|
||||||
|
try {
|
||||||
// todo: get users from store
|
// todo: get users from store
|
||||||
const users = window.API.cachedUsers;
|
const users = window.API.cachedUsers;
|
||||||
const dbNotes = await database.getAllUserNotes();
|
const dbNotes = await database.getAllUserNotes();
|
||||||
@@ -93,7 +94,6 @@ const userNotes = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async checkNote(userId, newNote) {
|
async checkNote(userId, newNote) {
|
||||||
console.log('checkNote', userId, newNote);
|
|
||||||
// last check was more than than 5 minutes ago
|
// last check was more than than 5 minutes ago
|
||||||
if (
|
if (
|
||||||
!this.lastNoteCheck ||
|
!this.lastNoteCheck ||
|
||||||
|
|||||||
@@ -142,6 +142,10 @@ mixin dialogs
|
|||||||
:groupDialogFilterOptions='groupDialogFilterOptions'
|
:groupDialogFilterOptions='groupDialogFilterOptions'
|
||||||
:isGroupGalleryLoading='isGroupGalleryLoading'
|
:isGroupGalleryLoading='isGroupGalleryLoading'
|
||||||
:randomUserColours='randomUserColours'
|
:randomUserColours='randomUserColours'
|
||||||
|
:offlineFriends='offlineFriends'
|
||||||
|
:activeFriends='activeFriends'
|
||||||
|
:onlineFriends='onlineFriends'
|
||||||
|
:vipFriends='vipFriends'
|
||||||
@updateGroupPostSearch='updateGroupPostSearch'
|
@updateGroupPostSearch='updateGroupPostSearch'
|
||||||
@groupDialogCommand='groupDialogCommand'
|
@groupDialogCommand='groupDialogCommand'
|
||||||
@getGroupDialogGroup='getGroupDialogGroup')
|
@getGroupDialogGroup='getGroupDialogGroup')
|
||||||
|
|||||||
Reference in New Issue
Block a user