Skip to main content

fetch_recent

Function fetch_recent 

Source
async fn fetch_recent(
    api: &dyn SlackApi,
    channel: &str,
) -> Result<Vec<SlackHistoryMessage>, SlackError>
Expand description

The conversation’s newest page, and only that page. Not fetch_history: walking back from a cursor would page through the channel’s whole past, and this is a window over what is recent rather than a read position.

A thread’s parent stays inside it, which is the only way the sweep can see that a thread has moved - conversations.history never returns a reply, and a parent the cursor has moved past is otherwise invisible for good.