mirror of
https://github.com/wassname/talk.git
synced 2026-07-15 11:26:58 +08:00
Add 1 extra suspension minute
This commit is contained in:
@@ -39,10 +39,13 @@ class SuspendUserDialog extends React.Component {
|
||||
}
|
||||
|
||||
handlePerform = () => {
|
||||
|
||||
this.props.onPerform({
|
||||
id: this.props.userId,
|
||||
message: this.state.message,
|
||||
until: dateAdd(new Date(), 'hour', this.state.duration),
|
||||
|
||||
// Add 1 minute more to help `timeago.js` to display the correct duration.
|
||||
until: dateAdd(new Date(), 'minute', this.state.duration * 60 + 1),
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user