refactor(protocol): move roster refresh into the packet pipeline

Replace the shallow refreshMemberCache adapter with fetchGroupList
and fetchGroupMemberList ports. Skip, swallow, and coalesce stay
next to the join/leave/admin trigger.
This commit is contained in:
DrSmoothl committed 2026-08-16 23:18:04 +08:00
1 parent 9772d4f0bf
commit 206727f823
7 files changed
+265 -44

No files matched your search

+2 -1
View File
@@ -134,7 +134,8 @@ function makePipeline(identity: IdentityService): IncomingPacketPipeline {
const pipeline = new IncomingPacketPipeline({
identity,
events,
refreshMemberCache: async () => false,
fetchGroupList: async () => {},
fetchGroupMemberList: async () => {},
});
pipeline.registerCmd(MSG_PUSH_CMD, parseMsgPush);
return pipeline;