fix: remove unnecessary error handling to avoid sending failed notifications. (#2009)

pull/2012/head
OpenIM-Gordon 9 months ago committed by GitHub
parent c79f46f8a3
commit 52ddc4f05b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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