Add 2500 as default delay

pull/21833/head
Andrew Morgan 2019-03-07 11:12:16 +00:00
parent c5198418b0
commit 71261fc7a7
1 changed files with 1 additions and 1 deletions

View File

@ -129,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 Promise.delay(e.retry_after_ms);
await Promise.delay(e.retry_after_ms || 2500);
// Redo last action
i--;