mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-12 17:32:21 -04:00
Add a setting for automatic marking read
When a message is opened
This commit is contained in:
parent
e038993f27
commit
0248b051ef
12 changed files with 267 additions and 242 deletions
|
@ -44,7 +44,7 @@ function mail.show_message(name, id)
|
|||
local body = minetest.formspec_escape(message.body) or ""
|
||||
formspec = string.format(formspec, from, to, cc, date, subject, body)
|
||||
|
||||
if not message.read then
|
||||
if not message.read and mail.get_setting(name, "auto_marking_read") then
|
||||
-- mark as read
|
||||
mail.mark_read(name, id)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue