Skip to content

Commit

Permalink
chore: revert
Browse files Browse the repository at this point in the history
  • Loading branch information
ameerul-deriv committed Jan 26, 2023
1 parent 1e3b236 commit 1576344
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/p2p/src/stores/general-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,7 @@ export default class GeneralStore extends BaseStore {
const server_time = this.props.server_time.get();
const blocked_until_moment = toMoment(blocked_until);

this.user_blocked_timeout = setTimeout(() => {
this.setUserBlockedUntil(null);
}, blocked_until_moment.diff(server_time));
if (server_time.isAfter(blocked_until_moment)) this.setUserBlockedUntil(null);
}
}
);
Expand Down

0 comments on commit 1576344

Please sign in to comment.