Skip to content

local echo (6.75/7): Revised commit for local echo (sans retrieving failed outbox content) #1538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chrisbobbe
Copy link
Collaborator

@chrisbobbe chrisbobbe commented May 30, 2025

Here's a revised version of a substantive commit from #1453:

9c0b955 msglist: Add and manage outbox message objects in message list view

That just leaves one more substantive commit from that PR:

1fa9f24 msglist: Support retrieving failed outbox message content

@chrisbobbe chrisbobbe requested a review from gnprice May 30, 2025 00:06
@chrisbobbe chrisbobbe added the integration review Added by maintainers when PR may be ready for integration label May 30, 2025
@gnprice
Copy link
Member

gnprice commented May 30, 2025

Thanks! I won't get to reading this until I'm back after next week.

The title's numbering collides with #1535; I saw the title and initially thought this was a new version of that PR. Perhaps this is 6.75/7? 😛

@chrisbobbe chrisbobbe changed the title local echo (6.5/7): Revised commit for local echo (sans retrieving failed outbox content) local echo (6.75/7): Revised commit for local echo (sans retrieving failed outbox content) May 30, 2025
@chrisbobbe
Copy link
Collaborator Author

Oh! Indeed.

Perhaps this is 6.75/7? 😛

Yes, that's how I named the branch and how I meant to name the PR. 😛

This adds some overhead on message-event handling, linear in the
number of outbox messages in a view. We rely on that number being
small.

We add outboxMessages as a list independent from messages on
_MessageSequence.  Because outbox messages are not rendered
(the raw content is shown as plain text), we leave the 1-1
relationship between `messages` and `contents` unchanged.

When computing `items`, we now start to look at `outboxMessages` as
well, with the guarantee that the items related to outbox messages
always come after those for other messages.  Look for places that call
`_processOutboxMessage(int index)` for references, and the changes to
`checkInvariants` on how this affects the message list invariants.

`addOutboxMessage` is similar to `handleMessage`.  However, outbox
messages do not rely on the fetched state, i.e. they can be
synchronously updated when the message list view was first
initialized.

This implements minimal support to display outbox message message item
widgets in the message list, without indicators for theirs states.
Retrieving content from failed sent requests and the full UI are
implemented in a later commit.

Co-authored-by: Chris Bobbe <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration review Added by maintainers when PR may be ready for integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants