mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-08-17 01:30:03 +08:00
findMsgInfoBySeq
This commit is contained in:
parent
576b699495
commit
d446516be8
@ -407,7 +407,7 @@ func (db *commonMsgDatabase) findMsgInfoBySeq(ctx context.Context, userID, docID
|
|||||||
} else {
|
} else {
|
||||||
for _, seq := range seqs {
|
for _, seq := range seqs {
|
||||||
for i, msg := range msgs {
|
for i, msg := range msgs {
|
||||||
if seq == msg.Msg.Seq {
|
if msg.Msg != nil && seq == msg.Msg.Seq {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if i == len(msgs)-1 {
|
if i == len(msgs)-1 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user