findMsgInfoBySeq

This commit is contained in:
withchao 2023-05-29 20:33:36 +08:00
parent 576b699495
commit d446516be8

View File

@ -407,7 +407,7 @@ func (db *commonMsgDatabase) findMsgInfoBySeq(ctx context.Context, userID, docID
} else {
for _, seq := range seqs {
for i, msg := range msgs {
if seq == msg.Msg.Seq {
if msg.Msg != nil && seq == msg.Msg.Seq {
break
}
if i == len(msgs)-1 {