diff --git a/internal/rpc/msg/send_msg.go b/internal/rpc/msg/send_msg.go index 1c59c97df..9d1fc841e 100644 --- a/internal/rpc/msg/send_msg.go +++ b/internal/rpc/msg/send_msg.go @@ -331,6 +331,9 @@ func (rpc *rpcChat) SendMsg(_ context.Context, pb *pbChat.SendMsgReq) (*pbChat.S } } log.Debug(pb.OperationID, "send msg cost time22 ", db.GetCurrentTimestampByMill()-newTime, pb.MsgData.ClientMsgID, "uidList : ", len(addUidList)) + wg.Add(1) + go rpc.sendMsgToGroup(addUidList, *pb, constant.OnlineStatus, &sendTag, &wg) + wg.Wait() newTime = db.GetCurrentTimestampByMill() // callback callbackResp = callbackAfterSendGroupMsg(pb)