From e8427ee33e786beaa017a4d02109fd28d470fb41 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Thu, 15 Jun 2023 14:20:05 +0800 Subject: [PATCH] group --- internal/rpc/msg/verify.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/rpc/msg/verify.go b/internal/rpc/msg/verify.go index 6e0b2153c..f6903f9f9 100644 --- a/internal/rpc/msg/verify.go +++ b/internal/rpc/msg/verify.go @@ -89,6 +89,9 @@ func (m *msgServer) messageVerification(ctx context.Context, data *msg.SendMsgRe groupMemberInfo, err := m.Group.GetGroupMemberCache(ctx, data.MsgData.GroupID, data.MsgData.SendID) if err != nil { + if err == errs.ErrRecordNotFound { + return errs.ErrNotInGroupYet.Wrap(err.Error()) + } return err } if groupMemberInfo.RoleLevel == constant.GroupOwner {