Skip to content

Simplify secure message rendering and pending attachment requests - #80

Open
ProtonDev-sys wants to merge 1 commit into
nightlyfrom
simplify/secure-history-rendering-20260905
Open

Simplify secure message rendering and pending attachment requests#80
ProtonDev-sys wants to merge 1 commit into
nightlyfrom
simplify/secure-history-rendering-20260905

Conversation

@ProtonDev-sys

Copy link
Copy Markdown
Owner

Optimistic and authenticated encrypted messages duplicated the same card markup, while pending attachment requests used a wrapper object with a dummy failure promise. Share the existing rendering branch and store each pending promise directly, retaining the identity check that prevents stale completions from clearing newer requests.

This removes 14 net lines across two files. The review retained the authenticated attachment manifest, selective downloads, and plaintext memoization because they serve concrete behavior and performance needs.

Validation: 49 attachment-cache, cache-lifecycle, and plaintext-rendering checks passed; optimistic rendering checks, TypeScript, targeted ESLint, desktop standalone build, and git diff --check passed. No live Discord validation was performed.

@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 46339f1a-430b-4c16-939d-649753ce3369

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant