From 53cf2c0540cf7009100fedc3b10e6b7676458962 Mon Sep 17 00:00:00 2001 From: Monet Lee Date: Tue, 29 Oct 2024 10:42:04 +0800 Subject: [PATCH] fix: improve time condition check mehtod. (#2804) * fix: improve time condition check mehtod. * fix --- internal/rpc/group/group.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {