From 15e0a7aa3858674552d82634689bd7c4681bc595 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Tue, 16 Aug 2022 14:15:51 +0800 Subject: [PATCH] update orgnization after update user --- internal/rpc/user/user.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/rpc/user/user.go b/internal/rpc/user/user.go index e8536e598..86d80a5f5 100644 --- a/internal/rpc/user/user.go +++ b/internal/rpc/user/user.go @@ -454,9 +454,7 @@ func (s *userServer) UpdateUserInfo(ctx context.Context, req *pbUser.UpdateUserI if err != nil { log.NewError(req.OperationID, utils.GetSelfFuncName(), "UpdateOrganizationUser failed", err.Error()) } else { - if out.ErrCode == 0 { - chat.OrganizationNotificationToAll(req.OpUserID, req.OperationID) - } else { + if out.ErrCode != 0 { log.NewError(req.OperationID, utils.GetSelfFuncName(), "grpc resp: ", out) } }