Skip to main content

get_unread_for_did

Function get_unread_for_did 

Source
pub async fn get_unread_for_did(
    pool: &SqlitePool,
    did: &str,
) -> Result<Vec<Entry>>
Expand description

Unread entries for a DID: entries with no entry_state row for that DID, or one where read = 0. Newest-published first. This is the daily-driver list query, so it’s a LEFT JOIN (an entry with no state row is unread).