Skip to content

Commit 1eaae5f

Browse files
authored
fix: fetch message return isEnd and endSeq panic. (#2959)
* fix: server can return isEnd to control fetch messages when sdk pull messages end normally. * fix: server can return isEnd to control fetch messages when sdk pull messages end normally. * fix: server can return isEnd to control fetch messages when sdk pull messages end normally.
1 parent 97f506c commit 1eaae5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/rpc/msg/sync_msg.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ func (m *msgServer) GetSeqMessage(ctx context.Context, req *msg.GetSeqMessageReq
9797
return nil, err
9898
}
9999
var pullMsgs *sdkws.PullMsgs
100-
pullMsgs.IsEnd = isEnd
101-
pullMsgs.EndSeq = endSeq
102100
if ok := false; conversationutil.IsNotificationConversationID(conv.ConversationID) {
103101
pullMsgs, ok = resp.NotificationMsgs[conv.ConversationID]
104102
if !ok {
@@ -113,6 +111,8 @@ func (m *msgServer) GetSeqMessage(ctx context.Context, req *msg.GetSeqMessageReq
113111
}
114112
}
115113
pullMsgs.Msgs = append(pullMsgs.Msgs, msgs...)
114+
pullMsgs.IsEnd = isEnd
115+
pullMsgs.EndSeq = endSeq
116116
}
117117
return resp, nil
118118
}

0 commit comments

Comments
 (0)