Repository navigation
feat(web): follow-ups queue while a message uploads - #24
Merged
Merged
Conversation
A send that waits on uploads holds the sends after it, which then queue behind its turn. A journal keeps unsent messages across a page reload.
A message sent while an earlier one is still uploading queues behind it instead of being refused. It shows in the queue, where it can be removed or moved back to the composer, and goes out once the earlier message reaches the server. If the earlier send fails, the follow-ups return to the composer with it, in order. Bot chats queue follow-ups during a running turn, and a reload brings back the text of messages that never went out.
Held queue rows no longer offer Send now, which cannot reach them.
Follow-ups is its own client setting that defaults to Queue, so an explicit Steer still steers. Held follow-ups render from the send order and stay in the queue across a thread switch or remount. Unsent messages are restored only from pages that stopped beating and only within a week, and a multiple-model send is still refused while an earlier send uploads.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In a bot chat, a message with a large batch of attachments can take minutes to upload. A second message sent during the upload was refused with "Still sending your previous message". A follow-up sent while the bot was replying steered the reply by default instead of waiting for its turn.
Now a follow-up sent during an upload queues behind it:
queue_after_activeonce the earlier message reaches the server. Messages reach the server in the order they were sent, and the existing server queue runs each one after the turn before it.followUpsclient setting, with Queue as the default. The earlier value is not read, so a previous Steer choice resets to Queue. Choosing Steer again keeps steering.Phone, 390x844, with three follow-ups queued while a 60-file batch uploads:
Desktop, 1440x900:
The queue draining in order after the upload lands: