Signed-off-by: hanzhixiao <709674996@qq.com>
This commit is contained in:
Alan
2023-08-09 10:53:48 +08:00
committed by GitHub
parent 5615e47d99
commit 3ecd33aded
4 changed files with 113 additions and 62 deletions
+3
View File
@@ -962,6 +962,9 @@ func (db *commonMsgDatabase) SearchMessage(ctx context.Context, req *pbMsg.Searc
return 0, nil, err
}
for _, msg := range msgs {
if msg.IsRead {
msg.Msg.IsRead = true
}
totalMsgs = append(totalMsgs, convert.MsgDB2Pb(msg.Msg))
}
return total, totalMsgs, nil