1677 Commits

Author SHA1 Message Date
dsx137
e674b85328 refactor(group): optimize group notification and cache handling
- Improve notification sender with bulk operations and fallback logic
- Enhance group cache with new methods for member counts and version handling
- Refactor group controller with better cache integration
- Add more robust error handling and logging

fix(group): optimize group cache implementation

This commit refactors the GroupCacheRedis implementation to improve code organization and maintainability. The changes include:

- Added proper import organization and removed unused imports
- Implemented batchGetCache2 function calls for efficient data retrieval
- Added comprehensive cache key management functions
- Improved version tracking for group members and requests
- Enhanced error handling and logging
- Added batch operations for better performance
- Refactored complex functions into smaller, more manageable pieces

The changes focus on improving the overall structure and performance of the group cache system while maintaining backward compatibility.

refactor(group): improve notification error handling and add admin context

- Convert notification methods to return errors for better error propagation
- Add admin context checking for bulk notifications
- Enhance group info retrieval with proper error handling
- Improve notification sender with fallback user information

fix(group): handle nil group member map in notification

Add nil check for groupMemberMap[groupInfo.GroupID] before accessing to prevent nil pointer panic. Skip iteration if map is nil.

refactor(group): update group notification methods to use UserInfo struct

Renamed function parameter from groupMemberUserID string to changedUserInfo *sdkws.UserInfo
Updated function logic to use changedUserInfo.UserID instead of separate parameter
Refactored notification methods to use consistent UserInfo struct pattern
Added proper error handling for opUser retrieval
Updated function signatures and internal logic for GroupMemberInfoSetNotificationBulk

fix: batchGetGroupRoleLevelMemberIDs with BatchCache

fix: GetGroupMemberNums BatchCache

perf(group): optimize notification logic for group member operations

# Conflicts:
#	internal/rpc/group/group.go
#	pkg/common/storage/cache/redis/group.go

# Conflicts:
#	internal/rpc/group/group.go
#	pkg/common/storage/cache/redis/group.go
2026-03-20 10:57:26 +08:00
dsx137
5028624fa3
feat: gomake upgrade (#3701) 2026-03-19 12:07:04 +08:00
icey-yu
9b92b3c744
Merge pull request #3697 from icey-yu/feat-bot383
feat: update protocol support botPlatform
2026-03-11 12:16:30 +08:00
icey-yu
f9989274f9 feat: update protocol support botPlatform 2026-03-11 12:16:13 +08:00
神奇bug在哪里
8b4ff0c55b
bugfix(permission):fix no permission error when set group notification. (#3675)
* bugfix(permission):fix no permission error when set group notification.

* fix(send): add temporary admin context to solve permission problem.
2026-02-09 19:12:21 +08:00
chao
7d5e4a2196
Merge pull request #3671 from withchao/3.8.3-patch
feat: add error code for handled friend requests and improve error handling in friend operations
2026-01-22 15:14:13 +08:00
withchao
452e3b2bbb feat: add error code for handled friend requests and improve error handling in friend operations
(cherry picked from commit 5d451fa3f86d48eaf5aab0d961bc99b265c058ec)
2026-01-22 15:07:41 +08:00
chao
5f81f632f8
Merge pull request #3659 from withchao/3.8.3-patch
fix: Mongo Malloc upsert overwrites min_seq initialization
2026-01-15 11:02:35 +08:00
withchao
72c39e1dda fix: seq use $setOnInsert for min_seq in conversation update
(cherry picked from commit c27d33160f167a7d967f9d1cb74a6b48c5e44ca9)
2026-01-15 10:56:40 +08:00
dsx137
98b9343501
fix(group): move member count retrieval after member deletion for accurate updates (#3650) 2025-12-31 18:02:09 +08:00
dsx137
1a053275f8
fix(group): set max_seq to 0 when join group (#3647) 2025-12-31 10:56:56 +08:00
chao
1a1391cf3d
Merge pull request #3648 from withchao/3.8.3-patch
refactor: simplify platformID handling and enhance UserConnContext structure
2025-12-25 16:25:30 +08:00
withchao
9fefa916c8 refactor: simplify platformID handling and enhance UserConnContext structure 2025-12-25 15:52:19 +08:00
ribin2333
95ab761d8f
group: 入群个人上限重置为不受限值;退出个人上限固化;通知控制入群 minSeq (#3646) 2025-12-24 17:52:47 +08:00
chao
1c5f876183
Merge pull request #3645 from withchao/3.8.3-patch
feat: replace LongConn with ClientConn interface and simplify message handling
2025-12-19 17:12:28 +08:00
withchao
44457187be refactor: replace LongConn with ClientConn interface and simplify message handling 2025-12-19 17:11:29 +08:00
chao
f4171a2c30
Merge pull request #3638 from withchao/3.8.3-patch
fix: resolve deadlock in cache eviction and improve GetBatch implementation
2025-12-12 15:46:38 +08:00
withchao
59c6136ba8 fix: resolve deadlock in cache eviction and improve GetBatch implementation 2025-12-12 15:39:48 +08:00
withchao
f485f92b00 fix: resolve deadlock in cache eviction and improve GetBatch implementation 2025-12-12 15:33:08 +08:00
withchao
c40f979de6 fix: resolve deadlock in cache eviction and improve GetBatch implementation
(cherry picked from commit ebda95fb11abdddd52ee645dcb2d0697ac9b8e35)
2025-12-12 15:32:19 +08:00
icey-yu
2039f4b305
Merge pull request #3619 from icey-yu/fix-group
fix: group notification
2025-11-14 17:16:44 +08:00
icey-yu
72b2dc92f2 fix: cicd 2025-11-14 15:06:49 +08:00
icey-yu
ad2b09b282 fix: group notification 2025-11-14 14:44:38 +08:00
icey-yu
1679a85370 fix: group notification 2025-11-14 14:41:27 +08:00
Monet Lee
2a0df3a22e
fix: incorrect redis fields. (#3602)
* Fix: Resolved the issue of incorrect generation of conversationID in 3.8.3-patch branch.

* fix: solve incorrect time.Unix and logger asyncwrite in 3.8.3-patch branch.

* fix: incorrect redis fields.
2025-10-24 14:56:05 +08:00
chao
1954b70023
Merge pull request #3589 from withchao/3.8.3-patch
fix: full id version
2025-10-15 10:22:05 +08:00
withchao
17a3105f41 fix: full id version
(cherry picked from commit 9a1d2a85cdb555d7eef4e79d2c866dacdfbd86ae)
2025-10-15 10:12:58 +08:00
Monet Lee
0fa714b831
fix: solve incorrect time.Unix and logger asyncwrite in 3.8.3-patch (#3585)
* Fix: Resolved the issue of incorrect generation of conversationID in 3.8.3-patch branch.

* fix: solve incorrect time.Unix and logger asyncwrite in 3.8.3-patch branch.
2025-09-30 17:52:24 +08:00
Monet Lee
746da2554d
Fix: Resolved the issue of incorrect generation of conversationID in 3.8.3-patch branch. (#3582) 2025-09-29 17:27:56 +08:00
icey-yu
ed1c22127e
Merge pull request #3579 from icey-yu/fix-prometheus-3.8.3
fix: prometheus 3.8.3
2025-09-26 16:41:06 +08:00
icey-yu
34c35099d1 fix: prometheus 2025-09-26 16:38:02 +08:00
icey-yu
fd479c15b4 fix: prometheus 2025-09-26 15:55:33 +08:00
icey-yu
95d383d656 fix: prometheus 2025-09-26 15:53:52 +08:00
icey-yu
36810b99a4 fix: prometheus 2025-09-26 15:53:19 +08:00
icey-yu
0bd60efeab fix: prometheus 2025-09-26 15:44:18 +08:00
icey-yu
909f3a4a24 fix: prometheus 2025-09-26 15:27:46 +08:00
icey-yu
15d7129c46 chore: fix prometheus 2025-09-26 12:29:20 +08:00
Monet Lee
310d70b64e
fix: GetSortedConversationList nil pointer when chatlog not found in v3.8.3-patch branch. (#3569) 2025-09-19 11:45:07 +08:00
Monet Lee
dc7ce098cd
fix: switch kafka & etcd image namespace to bitnamilegacy in v3.8.3-patch branch. (#3557)
* fix: switch kafka & etcd image namespace to bitnamilegacy in v3.8.3-patch branch.

* revert change.

* revert incorrect changes.

* revert incorrect changes.
2025-09-03 17:23:55 +08:00
Monet Lee
4aea6bb4ff
build: improve publish docker image workflow in v3.8.3-patch branch. (#3551) 2025-09-01 10:49:17 +08:00
OpenIM-Robot
2aab7034b0
feat: enable redis aof-use-rdb-preamble && disable auto rdb (#3529) (#3535)
Co-authored-by: icey-yu <119291641+icey-yu@users.noreply.github.com>
2025-08-19 16:36:59 +08:00
OpenIM-Gordon
7a9c336a96
fix: fill in the most recent sendTime for a gap message to prevent the client from repeatedly retrieving the same message due to sendTime being 0. (#3523) 2025-08-14 13:43:34 +08:00
Monet Lee
02025278b3
fix: solve batch incorrect error in Find DocIDs in v3.8.3-patch branch. (#3515) 2025-08-13 17:24:23 +08:00
Monet Lee
90596b1a02
fix: fix incorrect kicked logic and PCAndOther Login policy In v3.8.3-patch (#3511) 2025-08-12 16:31:41 +08:00
Gordon
482284a0fb Merge remote-tracking branch 'upstream/3.8.3-patch' into 3.8.3-patch 2025-07-29 16:00:51 +08:00
Gordon
a893141ae6 eat: add filtering for invalid messages and invalid conversations to prevent data-fetching exceptions after conversations are deleted. 2025-07-29 16:00:08 +08:00
Monet Lee
9eccfee997
fix: solve redis config db field in v3.8.3-patch (#3490) 2025-07-29 14:11:43 +08:00
Monet Lee
f950dbc5e7
fix: import friends send notification in v3.8.3-patch (#3488) 2025-07-29 11:11:42 +08:00
OpenIM-Gordon
55113e5277
feat: add filtering for invalid messages and invalid conversations to prevent data-fetching exceptions after conversations are deleted. (#3239) (#3247) (#3483)
Co-authored-by: OpenIM-Robot <openim4@gmail.com>
2025-07-28 14:43:58 +08:00
OpenIM-Robot
7fdc438500
fix: correctly aggregate read seqs by conversation and user before DB update. [Created by @FGadvancer from #3442] (#3482)
* fix: correctly aggregate read seqs by conversation and user before DB update. (#3442)

* build: docker compose file add some comments.

* fix: correctly aggregate read seqs by conversation and user before DB update.

* solve declarate pkg issue.

---------

Co-authored-by: OpenIM-Gordon <1432970085@qq.com>
Co-authored-by: Monet Lee <monet_lee@163.com>
2025-07-28 12:36:48 +08:00