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

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