fix: remove unnecessary error handling to avoid sending failed notifications.

pull/2009/head
Gordon 2 years ago
parent c79f46f8a3
commit 29761497a8

@ -250,9 +250,6 @@ func (g *GroupNotificationSender) fillOpUser(ctx context.Context, opUser **sdkws
if opUser == nil { if opUser == nil {
return errs.ErrInternalServer.Wrap("**sdkws.GroupMemberFullInfo is nil") return errs.ErrInternalServer.Wrap("**sdkws.GroupMemberFullInfo is nil")
} }
if *opUser != nil {
return errs.ErrArgs.Wrap("*opUser is not nil")
}
userID := mcontext.GetOpUserID(ctx) userID := mcontext.GetOpUserID(ctx)
if groupID != "" { if groupID != "" {
if authverify.IsManagerUserID(userID, g.config) { if authverify.IsManagerUserID(userID, g.config) {

Loading…
Cancel
Save