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.