Open chrisbobbe opened 1 year ago
From a user perspective this feature means:
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: