fix: improve time condition check mehtod. (#2804)

* fix: improve time condition check mehtod.

* fix
pull/2805/head
Monet Lee 1 week ago committed by GitHub
parent 4de3befd60
commit 53cf2c0540
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save