From 9705fa687b6acadd8978992989dbbeea4e6d3d51 Mon Sep 17 00:00:00 2001 From: Kengwang Date: Mon, 27 Jul 2026 01:03:48 +0800 Subject: [PATCH] fix: Fix friend and group list not refresh --- Lagrange.Core/Internal/Context/CacheContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lagrange.Core/Internal/Context/CacheContext.cs b/Lagrange.Core/Internal/Context/CacheContext.cs index c07d28dd8..b527763fe 100644 --- a/Lagrange.Core/Internal/Context/CacheContext.cs +++ b/Lagrange.Core/Internal/Context/CacheContext.cs @@ -60,7 +60,7 @@ public async Task> GetCategories(bool refresh = false) if (friend == null) { - _friends = Interlocked.Exchange(ref _friends, await FetchFriends()); + Interlocked.Exchange(ref _friends, await FetchFriends()); friend = _friends?.FirstOrDefault(f => f.Uin == uin); } @@ -87,7 +87,7 @@ public async Task> GetCategories(bool refresh = false) if (group == null) { - _groups = Interlocked.Exchange(ref _groups, await FetchGroups()); + Interlocked.Exchange(ref _groups, await FetchGroups()); group = _groups?.FirstOrDefault(f => f.GroupUin == groupUin); }