|
|
|
@ -83,6 +83,11 @@ func (m *msgServer) webhookAfterSendSingleMsg(ctx context.Context, after *config
|
|
|
|
|
if msg.MsgData.ContentType == constant.Typing {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
// According to the attentionIds configuration, only some users are sent
|
|
|
|
|
attentionIds := after.AttentionIds
|
|
|
|
|
if attentionIds != nil && !datautil.Contain(msg.MsgData.RecvID, attentionIds...) && !datautil.Contain(msg.MsgData.SendID, attentionIds...) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
cbReq := &cbapi.CallbackAfterSendSingleMsgReq{
|
|
|
|
|
CommonCallbackReq: toCommonCallback(ctx, msg, cbapi.CallbackAfterSendSingleMsgCommand),
|
|
|
|
|
RecvID: msg.MsgData.RecvID,
|
|
|
|
|