test-errcode
wangchuxiao 1 year ago
parent 1b35ab4cf7
commit e8427ee33e

@ -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) groupMemberInfo, err := m.Group.GetGroupMemberCache(ctx, data.MsgData.GroupID, data.MsgData.SendID)
if err != nil { if err != nil {
if err == errs.ErrRecordNotFound {
return errs.ErrNotInGroupYet.Wrap(err.Error())
}
return err return err
} }
if groupMemberInfo.RoleLevel == constant.GroupOwner { if groupMemberInfo.RoleLevel == constant.GroupOwner {

Loading…
Cancel
Save