diff --git a/internal/rpc/group/group.go b/internal/rpc/group/group.go index ef917d5395..c59d9d3f48 100644 --- a/internal/rpc/group/group.go +++ b/internal/rpc/group/group.go @@ -1219,7 +1219,7 @@ func (g *groupServer) TransferGroupOwner(ctx context.Context, req *pbgroup.Trans } } - if newOwner.MuteEndTime != time.Unix(0, 0) { + if newOwner.MuteEndTime.After(time.Now()) { if _, err := g.CancelMuteGroupMember(ctx, &pbgroup.CancelMuteGroupMemberReq{ GroupID: group.GroupID, UserID: req.NewOwnerUserID}); err != nil {