mirror of
https://github.com/mt-mods/mail.git
synced 2025-03-20 16:41:25 +00:00
check if message is found in mail.show_message
This commit is contained in:
parent
f8f500ed76
commit
2111db2ff9
1 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,11 @@ local FORMNAME = "mail:message"
|
||||||
|
|
||||||
function mail.show_message(name, id)
|
function mail.show_message(name, id)
|
||||||
local message = mail.get_message(name, id)
|
local message = mail.get_message(name, id)
|
||||||
|
if not message then
|
||||||
|
-- message not found or vanished
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
mail.selected_idxs.message[name] = id
|
mail.selected_idxs.message[name] = id
|
||||||
|
|
||||||
local formspec = [[
|
local formspec = [[
|
||||||
|
|
Loading…
Add table
Reference in a new issue