From 0618ea68a62c9a21a5f68dce6e80ac532b0fb5a8 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Fri, 24 Jan 2025 13:41:50 +1300 Subject: [PATCH] Fix friendLog and notifications in wrist overlay --- src/app.js | 10 +++++++--- src/classes/sharedFeed.js | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/app.js b/src/app.js index eebffed6..b52d79bc 100644 --- a/src/app.js +++ b/src/app.js @@ -15361,9 +15361,13 @@ console.log(`isLinux: ${LINUX}`); } i++; this.friendsListLoadingProgress = `${i}/${length}`; - await API.getUser({ - userId - }); + try { + await API.getUser({ + userId + }); + } catch (err) { + console.error(err); + } } this.friendsListLoadingProgress = ''; this.friendsListLoading = false; diff --git a/src/classes/sharedFeed.js b/src/classes/sharedFeed.js index 4fd6e322..bc380010 100644 --- a/src/classes/sharedFeed.js +++ b/src/classes/sharedFeed.js @@ -419,7 +419,7 @@ export default class extends baseClass { updateSharedFeedNotificationTable(forceUpdate) { // invite, requestInvite, requestInviteResponse, inviteResponse, friendRequest - var notificationTable = this.notificationTable; + var notificationTable = this.notificationTable.data; var i = notificationTable.length; if (i > 0) { if ( @@ -471,7 +471,7 @@ export default class extends baseClass { updateSharedFeedFriendLogTable(forceUpdate) { // TrustLevel, Friend, FriendRequest, Unfriend, DisplayName - var friendLog = this.friendLogTable; + var friendLog = this.friendLogTable.data; var i = friendLog.length; if (i > 0) { if (