mirror of https://github.com/vector-im/riot-web
Add 2500 as default delay
parent
c5198418b0
commit
71261fc7a7
|
@ -129,7 +129,7 @@ export default class SecurityUserSettingsTab extends React.Component {
|
||||||
if (e.errcode === "M_LIMIT_EXCEEDED") {
|
if (e.errcode === "M_LIMIT_EXCEEDED") {
|
||||||
// Add a delay between each invite change in order to avoid rate
|
// Add a delay between each invite change in order to avoid rate
|
||||||
// limiting by the server.
|
// limiting by the server.
|
||||||
await Promise.delay(e.retry_after_ms);
|
await Promise.delay(e.retry_after_ms || 2500);
|
||||||
|
|
||||||
// Redo last action
|
// Redo last action
|
||||||
i--;
|
i--;
|
||||||
|
|
Loading…
Reference in New Issue