From 2a24a2a2abb2247a01ea10ac583c6d1fa109d997 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Sun, 26 Jan 2025 11:58:32 +1300 Subject: [PATCH] Fix "Group by Instance" disabled causing missing friends --- src/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app.js b/src/app.js index 6b61a55f..6dca9657 100644 --- a/src/app.js +++ b/src/app.js @@ -23395,6 +23395,10 @@ console.log(`isLinux: ${LINUX}`); }; $app.computed.onlineFriendsByGroupStatus = function () { + if (!this.isSidebarGroupByInstance) { + return this.onlineFriends; + } + const sameInstanceTag = new Set( this.friendsInSameInstance.flatMap((item) => item.map((friend) => friend.ref?.$location.tag) @@ -23407,6 +23411,10 @@ console.log(`isLinux: ${LINUX}`); }; $app.computed.vipFriendsByGroupStatus = function () { + if (!this.isSidebarGroupByInstance) { + return this.vipFriends; + } + const sameInstanceTag = new Set( this.friendsInSameInstance.flatMap((item) => item.map((friend) => friend.ref?.$location.tag)