mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
fix: remove unnecessary error handling to avoid sending failed notifications. (#2009)
This commit is contained in:
parent
c79f46f8a3
commit
52ddc4f05b
@ -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…
x
Reference in New Issue
Block a user