Skip to content

Commit

Permalink
fix: improve time condition check mehtod. (#2804)
Browse files Browse the repository at this point in the history
* fix: improve time condition check mehtod.

* fix
  • Loading branch information
mo3et authored Oct 29, 2024
1 parent 4de3bef commit 53cf2c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rpc/group/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 53cf2c0

Please sign in to comment.