Skip to content

Conversation

@Hocuri
Copy link
Collaborator

@Hocuri Hocuri commented Dec 9, 2025

Immediately fully download all messages that do not have the Chat-Is-Post-Message header. This way, we simplify the logic for when which messages are downloaded, there are no differences at all anymore between 'background_fetch' and 'normal fetch'.

Also, we prevent message reordering when reveiving a message from a legacy client.

Messages larger than 1MB without Chat-Is-Post-Message should be rare, so, we do not expect this to worsen things.

I adapted the pseudo-code in #7367 accordingly.

@Hocuri Hocuri mentioned this pull request Dec 9, 2025
7 tasks
@link2xt link2xt force-pushed the simon/receive-pre-messages branch 2 times, most recently from b6dc11a to bfc58e9 Compare December 9, 2025 14:29
@Hocuri Hocuri requested a review from link2xt December 9, 2025 14:38
Immediately fully download all messages that do not have the
`Chat-Is-Post-Message` header. This way, we simplify the logic for when
which messages are downloaded, there are no differences at all anymore
between 'background_fetch' and 'normal fetch'.

Also, we prevent message reordering when reveiving a message from a
legacy client.

Messages larger than 1MB without `Chat-Is-Post-Message` should be rare,
so, we do not expect this to really worsen things.
@Hocuri Hocuri force-pushed the hoc/receive-pre-messages-simplification branch from 1256834 to a48716b Compare December 9, 2025 14:40
@Hocuri Hocuri merged commit 6d14fdc into simon/receive-pre-messages Dec 9, 2025
16 of 17 checks passed
@Hocuri Hocuri deleted the hoc/receive-pre-messages-simplification branch December 9, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants