fix: add message typing field and fix the CallbackSingleMsgRead callback (#1784)

This commit is contained in:
Brabem
2024-01-19 18:28:30 +08:00
committed by GitHub
parent 77f0b2460b
commit 776081b35d
3 changed files with 18 additions and 7 deletions
+10
View File
@@ -124,6 +124,16 @@ func (m *msgServer) MarkMsgsAsRead(
return
}
}
req_callback := &cbapi.CallbackSingleMsgReadReq{
UserID: req.UserID,
ConversationID: req.ConversationID,
ContentType: conversation.ConversationType,
Seqs: req.Seqs,
}
if err = CallbackSingleMsgRead(ctx, req_callback); err != nil {
return nil, err
}
if err = m.sendMarkAsReadNotification(ctx, req.ConversationID, conversation.ConversationType, req.UserID,
m.conversationAndGetRecvID(conversation, req.UserID), req.Seqs, hasReadSeq); err != nil {
return