Skip to main content

Module folded_reply

Module folded_reply 

Source
Expand description

The row of a note that is folded: one from outside the account’s network, in a thread (see crate::nostr::thread) or among what the account is told of (see crate::nostr::notifications).

It says who wrote the note and why it is folded, and nothing of what it says: an answer from outside the network is, as often as not, somebody selling something. A click anywhere on it shows it in full.

Nor is the picture of whoever wrote it fetched, which would tell their server that the answer was seen: they have the disc with their initial that everybody has until their picture is there.

The row is one height, whoever wrote it and whatever is under it, and that is known before it is laid out (folded_reply_height): a list that counts on it never moves.

Functions§

folded_reply
The row of note, which somebody outside the account’s network wrote: who wrote it, that it is from outside the network, and at its end beside, in small print: in a thread, how many answers are out of sight under it; among the notifications, when it was written. A click shows it in full, but not while a menu is open over the list.
folded_reply_height
How tall the row of a folded answer is, set in sizes: what it says, with the room over it and the line under it that every row has.
said_height 🔒
How tall what a folded row says is, set in sizes: the picture, or the two lines beside it, whichever is taller.