Revert "Replace Promise.delay with promise utils sleep"
This reverts commit 0a21957b
This commit is contained in:
parent
168b1b68bb
commit
f9d6ed63f0
4 changed files with 9 additions and 13 deletions
|
@ -25,7 +25,6 @@ import Analytics from "../../../../../Analytics";
|
|||
import Promise from "bluebird";
|
||||
import Modal from "../../../../../Modal";
|
||||
import sdk from "../../../../..";
|
||||
import {sleep} from "../../../../../utils/promise";
|
||||
|
||||
export class IgnoredUser extends React.Component {
|
||||
static propTypes = {
|
||||
|
@ -130,7 +129,7 @@ export default class SecurityUserSettingsTab extends React.Component {
|
|||
if (e.errcode === "M_LIMIT_EXCEEDED") {
|
||||
// Add a delay between each invite change in order to avoid rate
|
||||
// limiting by the server.
|
||||
await sleep(e.retry_after_ms || 2500);
|
||||
await Promise.delay(e.retry_after_ms || 2500);
|
||||
|
||||
// Redo last action
|
||||
i--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue