mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 02:42:19 +08:00
fix: fix the CallbackSingleMsgRead unused
This commit is contained in:
parent
eb3caf91d1
commit
ae2bb79452
@ -124,6 +124,17 @@ func (m *msgServer) MarkMsgsAsRead(
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
req_callback := &cbapi.CallbackSingleMsgReadReq{
|
||||||
|
ConversationID: conversation.ConversationID,
|
||||||
|
UserID: req.UserID,
|
||||||
|
Seqs: req.Seqs,
|
||||||
|
ContentType: conversation.ConversationType,
|
||||||
|
}
|
||||||
|
if err = CallbackSingleMsgRead(ctx, req_callback); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
if err = m.sendMarkAsReadNotification(ctx, req.ConversationID, conversation.ConversationType, req.UserID,
|
if err = m.sendMarkAsReadNotification(ctx, req.ConversationID, conversation.ConversationType, req.UserID,
|
||||||
m.conversationAndGetRecvID(conversation, req.UserID), req.Seqs, hasReadSeq); err != nil {
|
m.conversationAndGetRecvID(conversation, req.UserID), req.Seqs, hasReadSeq); err != nil {
|
||||||
return
|
return
|
||||||
|
|||||||
@ -94,9 +94,10 @@ type CallbackGroupMsgReadResp struct {
|
|||||||
|
|
||||||
type CallbackSingleMsgReadReq struct {
|
type CallbackSingleMsgReadReq struct {
|
||||||
CallbackCommand `json:"callbackCommand"`
|
CallbackCommand `json:"callbackCommand"`
|
||||||
SendID string `json:"sendID"`
|
ConversationID string `json:"conversationID"`
|
||||||
ReceiveID string `json:"receiveID"`
|
UserID string `json:"userID"`
|
||||||
ContentType int64 `json:"contentType"`
|
Seqs []int64 `json:"Seqs"`
|
||||||
|
ContentType int32 `json:"contentType"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CallbackSingleMsgReadResp struct {
|
type CallbackSingleMsgReadResp struct {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user