This repository has been archived on 2026-10-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Sable/.gitea/workflows/build.yml
T
Dragon ab91754e7e
Build / build (push) Has been cancelled
Fix: force re-render of encrypted message content after decryption
The EncryptedContent component was not updating its rendered output after
successful decryption. When decryptEventIfNeeded() resolved, the mEvent
object was mutated to contain plaintext content, but React did not
re-evaluate the children() render function because the component
structure appeared unchanged to the reconciler.

Fix:
- Added a decryptedVer counter state that increments each time
  decryption completes (either via Decrypted event or resolve of
  decryptEventIfNeeded)
- Used this counter as part of a React key on the fragment wrapping
  children(), forcing React to re-evaluate the render function when
  the key changes
- Added a 2-second retry after DecryptionFailure events, handling
  the case where keys arrive shortly after the initial decrypt attempt
- Added pendingDecrypt guard to prevent concurrent decrypt attempts

Also adds .gitea/workflows/build.yml for Gitea Actions CI.
2026-04-06 07:00:59 -06:00

50 lines
1.0 KiB
YAML

name: Build
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js 24
uses: actions/setup-node@v4
with:
node-version: '24'
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Get pnpm store path
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
pnpm-store-
- name: Install dependencies
run: pnpm install --ignore-engines
- name: Build
run: pnpm build
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: sable-dist
path: dist/
retention-days: 3