refactor(protocol): keep Decoder a pure parse of MsgPush events
Decoder used to write Identity: decodeGroupAdmin patched member roles and decodeFriendMessage stashed invite-card msgseq. That split observation with IncomingPacketPipeline.rememberEventIdentity and put pending-application state on Identity. Decoder now only returns events. Invite-card groupUin/msgseq ride on FriendMessage; the live pipeline writes them to ContactsApi through an optional port. Role self-heal for #93 stays in rememberEventIdentity. History and forward decode do not write. Identity no longer stores invite-card sequences. Live #93 and #125 behavior is unchanged.
This commit is contained in:
12 files changed
+148
-79
No files matched your search
@@ -786,7 +786,6 @@ describe('IdentityService', () => {
|
||||
['forget group', () => identity.forgetGroup(GROUP_ID)],
|
||||
['group members', () => identity.rememberGroupMembers(GROUP_ID, [])],
|
||||
['user profile', () => identity.rememberUserProfile(profile)],
|
||||
['group invite sequence', () => identity.rememberGroupInviteCardSequence(GROUP_ID, 123)],
|
||||
['group requests', () => identity.rememberGroupRequests([request])],
|
||||
['request identity', () => identity.rememberRequestIdentity({ uid: 'u_request', uin: 88888 })],
|
||||
['group member identity', () => identity.rememberGroupMemberIdentity(GROUP_ID, { uid: 'u_new', uin: 99999 })],
|
||||
|
||||
Reference in new issue
Block a user