You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We retry sending the message, if we can't reach the server at the moment you first try (perhaps you're on a train in a tunnel, or on the road with spotty cell connections) but are able to sometime soon after, like minutes after.
When we give up on sending the message, we give the user feedback so they know it wasn't sent.
When we've given up on a message, we give the user the option to retry sending it.
gnprice
added
a-api
Implementing specific parts of the Zulip server API
a-model
Implementing our data model (PerAccountStore, etc.)
labels
Jun 14, 2023
An implementation note: this is what the method PerAccountStore.sendMessage is for.
Currently that method does nothing other than make the underlying sendMessage API request. When we implement this issue, the same method will instead create a new outbox-message in the subsystem described above.
As a matter of code organization, that outbox data will probably want to live on its own class defined in its own file; PerAccountStore will just hold onto an instance of that class, and PerAccountStore.sendMessage will delegate to that. See Inbox and StreamStore for existing examples (showing two somewhat different versions of that pattern).
Something like this, maybe. From discussion:
The text was updated successfully, but these errors were encountered: