Add filters

This commit is contained in:
Athozus 2023-04-05 18:58:34 +02:00
parent 618b338295
commit 1a1989a01d
No known key found for this signature in database
GPG key ID: B50895022E8484BF
6 changed files with 58 additions and 15 deletions

View file

@ -1,11 +1,11 @@
-- helper function for tabbed overview
function mail.show_mail_menu(playername, sortfield, sortdirection)
function mail.show_mail_menu(playername, sortfield, sortdirection, filter)
local index = mail.selected_idxs.boxtab[playername] or 1
if index == 1 then
mail.show_inbox(playername, sortfield, sortdirection)
mail.show_inbox(playername, sortfield, sortdirection, filter)
elseif index == 2 then
mail.show_sent(playername, sortfield, sortdirection)
mail.show_sent(playername, sortfield, sortdirection, filter)
elseif index == 3 then
mail.show_drafts(playername)
end