mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
Add 2500 as default delay
This commit is contained in:
parent
c5198418b0
commit
71261fc7a7
@ -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--;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user