mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-22 01:18:19 +01:00
Add a pendingMessages object to MessageSender. This object holds one promise per recipient number. We init this promise with Promise.resolve(), and chain on promises for message sending, replacing the previous promise with the newly chained promise each time. If the current promise resolves and finds that it is still the last promise in the chain, it removes itself.