fix:get msg error (#2494)

pull/2548/head
qinguoyi 3 months ago committed by GitHub
parent e70695077a
commit 97f4b51874
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -174,6 +174,9 @@ func (m *MessageRpcClient) GetMaxSeqs(ctx context.Context, conversationIDs []str
resp, err := m.Client.GetMaxSeqs(ctx, &msg.GetMaxSeqsReq{ resp, err := m.Client.GetMaxSeqs(ctx, &msg.GetMaxSeqsReq{
ConversationIDs: conversationIDs, ConversationIDs: conversationIDs,
}) })
if err != nil {
return nil, err
}
return resp.MaxSeqs, err return resp.MaxSeqs, err
} }
@ -182,6 +185,9 @@ func (m *MessageRpcClient) GetHasReadSeqs(ctx context.Context, userID string, co
UserID: userID, UserID: userID,
ConversationIDs: conversationIDs, ConversationIDs: conversationIDs,
}) })
if err != nil {
return nil, err
}
return resp.MaxSeqs, err return resp.MaxSeqs, err
} }
@ -190,6 +196,9 @@ func (m *MessageRpcClient) GetMsgByConversationIDs(ctx context.Context, docIDs [
ConversationIDs: docIDs, ConversationIDs: docIDs,
MaxSeqs: seqs, MaxSeqs: seqs,
}) })
if err != nil {
return nil, err
}
return resp.MsgDatas, err return resp.MsgDatas, err
} }

Loading…
Cancel
Save