Skip to main content

changed

Function changed 

Source
pub fn changed(
    list: Option<&Event>,
    person: PublicKey,
    follow: bool,
    now: Timestamp,
) -> Option<EventBuilder>
Expand description

The list that follows person (follow) or doesn’t, and is otherwise list, written at now or, if list claims to be from later, after it: it has to be the newer of the two. With no list to start from, one that follows person alone.

None when there is nothing to change: person is already followed, or already isn’t.