mirror of
https://github.com/mt-mods/mail.git
synced 2025-05-06 03:11:45 -04:00
Show previous sorters when going back from message/contacts/...
This commit is contained in:
parent
b7e047e167
commit
178345f4fb
2 changed files with 4 additions and 4 deletions
|
@ -3,8 +3,8 @@ local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
|
|
||||||
function mail.show_inbox(name, sortfield, sortdirection, filter)
|
function mail.show_inbox(name, sortfield, sortdirection, filter)
|
||||||
sortfield = sortfield or "3"
|
sortfield = sortfield or mail.selected_idxs.sortfield[name] or "3"
|
||||||
sortdirection = sortdirection or "1"
|
sortdirection = sortdirection or mail.selected_idxs.sortdirection[name] or "1"
|
||||||
|
|
||||||
if not filter then
|
if not filter then
|
||||||
filter = ""
|
filter = ""
|
||||||
|
|
|
@ -3,8 +3,8 @@ local S = minetest.get_translator("mail")
|
||||||
|
|
||||||
|
|
||||||
function mail.show_sent(name, sortfield, sortdirection, filter)
|
function mail.show_sent(name, sortfield, sortdirection, filter)
|
||||||
sortfield = sortfield or "3"
|
sortfield = sortfield or mail.selected_idxs.sortfield[name] or "3"
|
||||||
sortdirection = sortdirection or "1"
|
sortdirection = sortdirection or mail.selected_idxs.sortdirection[name] or "1"
|
||||||
|
|
||||||
if not filter then
|
if not filter then
|
||||||
filter = ""
|
filter = ""
|
||||||
|
|
Loading…
Add table
Reference in a new issue