fix: improve time condition check mehtod.

This commit is contained in:
Monet Lee 2024-10-29 10:00:34 +08:00
parent 4a8abfa21d
commit 4f2b872e88

View File

@ -1219,7 +1219,7 @@ func (g *groupServer) TransferGroupOwner(ctx context.Context, req *pbgroup.Trans
}
}
if newOwner.MuteEndTime != time.Unix(0, 0) {
if !newOwner.MuteEndTime.IsZero() {
if _, err := g.CancelMuteGroupMember(ctx, &pbgroup.CancelMuteGroupMemberReq{
GroupID: group.GroupID,
UserID: req.NewOwnerUserID}); err != nil {