mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-27 03:58:55 +08:00
cache rpc
This commit is contained in:
parent
490f4f36f1
commit
338acfba75
@ -398,7 +398,7 @@ func (s *officeServer) LikeOneWorkMoment(_ context.Context, req *pbOffice.LikeOn
|
|||||||
CreateTime: int32(time.Now().Unix()),
|
CreateTime: int32(time.Now().Unix()),
|
||||||
}
|
}
|
||||||
// send notification
|
// send notification
|
||||||
if like {
|
if like && workMoment.UserID != req.UserID {
|
||||||
msg.WorkMomentSendNotification(req.OperationID, workMoment.UserID, workMomentNotificationMsg)
|
msg.WorkMomentSendNotification(req.OperationID, workMoment.UserID, workMomentNotificationMsg)
|
||||||
}
|
}
|
||||||
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "resp: ", resp.String())
|
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "resp: ", resp.String())
|
||||||
@ -450,7 +450,9 @@ func (s *officeServer) CommentOneWorkMoment(_ context.Context, req *pbOffice.Com
|
|||||||
Content: comment.Content,
|
Content: comment.Content,
|
||||||
CreateTime: comment.CreateTime,
|
CreateTime: comment.CreateTime,
|
||||||
}
|
}
|
||||||
|
if req.UserID != workMoment.UserID {
|
||||||
msg.WorkMomentSendNotification(req.OperationID, workMoment.UserID, workMomentNotificationMsg)
|
msg.WorkMomentSendNotification(req.OperationID, workMoment.UserID, workMomentNotificationMsg)
|
||||||
|
}
|
||||||
if req.ReplyUserID != "" {
|
if req.ReplyUserID != "" {
|
||||||
msg.WorkMomentSendNotification(req.OperationID, req.ReplyUserID, workMomentNotificationMsg)
|
msg.WorkMomentSendNotification(req.OperationID, req.ReplyUserID, workMomentNotificationMsg)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user