mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-07 07:00:31 -04:00
Add ascending/descending, fix selection issue
This commit is contained in:
parent
3e2d022c87
commit
618b338295
5 changed files with 32 additions and 17 deletions
|
@ -33,7 +33,7 @@ function mail.show_inbox(name, sortfield, sortdirection)
|
|||
table[0,0.7;5.75,8.35;inbox;#999,]] .. S("From") .. "," .. S("Subject")
|
||||
local formspec = { inbox_formspec }
|
||||
local entry = mail.get_storage_entry(name)
|
||||
local messages = mail.sort_messages(entry.inbox, sortfield, sortdirection)
|
||||
local messages = mail.sort_messages(entry.inbox, tostring(sortfield), tostring(sortdirection))
|
||||
|
||||
mail.message_drafts[name] = nil
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue