mirror of
https://github.com/mt-mods/mail.git
synced 2025-03-15 06:01: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)
|
||||
local message = mail.get_message(name, id)
|
||||
if not message then
|
||||
-- message not found or vanished
|
||||
return
|
||||
end
|
||||
|
||||
mail.selected_idxs.message[name] = id
|
||||
|
||||
local formspec = [[
|
||||
|
|
Loading…
Add table
Reference in a new issue