diff options
| author | Adam Soltys <[email protected]> | 2026-09-14 19:18:28 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-14 19:18:28 -0700 |
| commit | 2b63cdbd2eacbcbd031de6616147d467da8a7c3c (patch) | |
| tree | cb68e9e91b87ffba1508f675c3286ef1e7aceb57 /src/api.js | |
| parent | 4409629ab28372def6afb07c2fb1e124a58ab171 (diff) | |
| download | coinosv3-2b63cdbd2eacbcbd031de6616147d467da8a7c3c.tar.gz coinosv3-2b63cdbd2eacbcbd031de6616147d467da8a7c3c.zip | |
A picture sent to a channel shows up as a picture, not an empty bubble.
Vector attaches files as NIP-92 imeta tags: the blob is encrypted with
a one-off AES-GCM key before it reaches Blossom, and the tag carries the
url, mime, key, nonce, plaintext sha256 and dimensions. Such a message
has no text, so the bubble rendered blank. The blob is now fetched
(fallback hosts too), decrypted in the browser, checked against the
hash, and shown from an object URL — a grey box its shape while it
loads, tap to view full size, other file types as a download by name.
The same tags render in DMs.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Diffstat (limited to 'src/api.js')
0 files changed, 0 insertions, 0 deletions
