mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-27 03:58:55 +08:00
isread
This commit is contained in:
parent
24120b61c0
commit
43f782b6ce
@ -51,7 +51,7 @@ func (m *msgServer) MarkMsgsAsRead(ctx context.Context, req *msg.MarkMsgsAsReadR
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = m.MsgDatabase.MarkSingleChatMsgsAsRead(ctx, req.ConversationID, req.UserID, req.Seqs)
|
err = m.MsgDatabase.MarkSingleChatMsgsAsRead(ctx, req.UserID, req.ConversationID, req.Seqs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -291,7 +291,7 @@ func (m *MsgMongoDriver) MarkSingleChatMsgsAsRead(ctx context.Context, userID st
|
|||||||
}
|
}
|
||||||
update := bson.M{
|
update := bson.M{
|
||||||
"$set": bson.M{
|
"$set": bson.M{
|
||||||
fmt.Sprintf("msgs.%d.msg.is_read", index): true,
|
fmt.Sprintf("msgs.%d.is_read", index): true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
updateModel := mongo.NewUpdateManyModel().
|
updateModel := mongo.NewUpdateManyModel().
|
||||||
|
Loading…
x
Reference in New Issue
Block a user