requestBacklog

open fun requestBacklog(bufferId: BufferId, first: MsgId = MsgId(-1), last: MsgId = MsgId(-1), limit: Int = -1, additional: Int = 0)

Loads backlog for bufferId, where the message id is >= first and <last. If first or last is unset, the list will be unbounded in that direction.

If a limit is set, the list will be truncated to the newest N messages.

If both first and last are set, and the list of messages is not truncated by limit, additional messages will be loaded before last.