Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commite09f1e4457

README.md

zeromind.markRead

Mark entries of your ZeroMind inbox read: zeromind.markRead(ids).

ids is a list of entry ids as zeromind.inbox lists them (at most 200 in one call), or "all" for every entry, however many. The answer is { marked, unread_count }: how many entries the call marked read (0 for "all") and the inbox's unread count after it. An id that names no entry of your inbox changes nothing. "all" also withdraws the inbox notices this engine posted, since what they told is read.

local page = tools.use("zeromind", "inbox", { unread = true })
tools.use("zeromind", "markRead", { page.items[1].id })