From 37c40d7dda28d58fc3c523a1b3132a36a3f27863 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Tue, 26 Apr 2022 15:52:03 +0800 Subject: [PATCH] work moments --- internal/rpc/office/office.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rpc/office/office.go b/internal/rpc/office/office.go index ab9da950a..e0ef89e43 100644 --- a/internal/rpc/office/office.go +++ b/internal/rpc/office/office.go @@ -453,7 +453,7 @@ func (s *officeServer) CommentOneWorkMoment(_ context.Context, req *pbOffice.Com if req.UserID != workMoment.UserID { msg.WorkMomentSendNotification(req.OperationID, workMoment.UserID, workMomentNotificationMsg) } - if req.ReplyUserID != "" && req.ReplyUserID != req.UserID { + if req.ReplyUserID != "" && req.ReplyUserID != workMoment.UserID && req.ReplyUserID != req.UserID { msg.WorkMomentSendNotification(req.OperationID, req.ReplyUserID, workMomentNotificationMsg) } log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "resp: ", resp.String())