del conversation bug fix

This commit is contained in:
Gordon 2022-08-05 19:10:08 +08:00
parent 600c5243dd
commit 2cf10fce38

View File

@ -29,6 +29,8 @@ import (
//When the number of group members is greater than this valueOnline users will be sent firstGuaranteed service availability
const GroupMemberNum = 500
var ExcludeContentType = []int{constant.HasReadReceipt, constant.GroupHasReadReceipt}
type MsgCallBackReq struct {
SendID string `json:"sendID"`
RecvID string `json:"recvID"`
@ -546,6 +548,9 @@ func modifyMessageByUserMessageReceiveOpt(userID, sourceID string, sessionType i
case constant.ReceiveMessage:
return true
case constant.NotReceiveMessage:
if utils.IsContainInt(int(pb.MsgData.ContentType), ExcludeContentType) {
return true
}
return false
case constant.ReceiveNotNotifyMessage:
if pb.MsgData.Options == nil {