fix(group): set max_seq to 0 when join group (#3647)

This commit is contained in:
dsx137
2025-12-31 10:56:56 +08:00
committed by GitHub
parent 1a1391cf3d
commit 1a053275f8
3 changed files with 4 additions and 3 deletions
+1 -2
View File
@@ -17,7 +17,6 @@ package group
import (
"context"
"fmt"
"math"
"math/big"
"math/rand"
"strconv"
@@ -1025,7 +1024,7 @@ func (s *groupServer) deleteMemberAndSetConversationSeq(ctx context.Context, gro
func (s *groupServer) setMemberJoinSeq(ctx context.Context, groupID string, userIDs []string) error {
conversationID := msgprocessor.GetConversationIDBySessionType(constant.ReadGroupChatType, groupID)
return s.conversationClient.SetConversationMaxSeq(ctx, conversationID, userIDs, math.MaxInt64)
return s.conversationClient.SetConversationMaxSeq(ctx, conversationID, userIDs, 0)
}
func (s *groupServer) SetGroupInfo(ctx context.Context, req *pbgroup.SetGroupInfoReq) (*pbgroup.SetGroupInfoResp, error) {