Skip to content

Commit

Permalink
fix: 单个群内群成员缓存不生效
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmomn committed Dec 7, 2024
1 parent b22bfd7 commit 6a5fe2a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/internal/cache/operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ func (c *Cache) RefreshGroupMember(groupUin uint32, groupMember *entity.GroupMem
// RefreshGroupMembers 刷新一个群内的所有群成员缓存
func (c *Cache) RefreshGroupMembers(groupUin uint32, groupMembers map[uint32]*entity.GroupMember) {
newc := &Cache{}
for k, v := range groupMembers {
setCacheOf(newc, k, v)
}
refreshAllCacheOf(newc, groupMembers)
setCacheOf(c, groupUin, newc)
}

Expand Down

0 comments on commit 6a5fe2a

Please sign in to comment.