feat: add support for encrypted attachment #45

Merged
reya merged 12 commits from encrypt-media into master 2026-09-16 01:25:15 +00:00
12 Commits
Author SHA1 Message Date
reya 024dc90d07 update ui 2026-09-16 08:23:42 +07:00
reya 89396b8f07 fix 2026-09-15 21:03:24 +07:00
reya ac70121bc9 update 2026-09-15 20:56:16 +07:00
reya ee3547fc86 feat: offer retrying a failed encrypted upload without encryption
Many servers reject opaque encrypted files, so report the failure with an action button that re-uploads the file as a plain link, like Amethyst does.
2026-09-15 20:45:32 +07:00
reya c8ee4f63bb fix: encode NIP-17 file key and nonce as hex
Amethyst parses decryption-key and decryption-nonce as hex, so base64 keys were unreadable by the only implementation of kind 15 file messages. Also accept the 16 bytes nonce Amethyst sends, while still emitting the standard 12 bytes. Replaces the now unused base64 dependency with data-encoding.
2026-09-15 20:45:32 +07:00
reya 06449d226f fix upload button 2026-09-15 20:17:36 +07:00
reya 8303b054f9 update chat ui 2026-09-15 20:05:27 +07:00
reya 2d7881e574 update api 2026-09-15 19:33:30 +07:00
reya 37d3380c55 update room 2026-09-15 19:21:01 +07:00
reya 9fcfb9f0bf update message 2026-09-15 19:16:10 +07:00
reya 1877e0082c add encrypted file construction 2026-09-15 19:11:54 +07:00
reya 68d3d77ae3 prepare 2026-09-15 19:03:20 +07:00