Message reply fixes (#78)

* Fix reply buttons in message list

* Give a default boxtab value (fix trivial issues)
This commit is contained in:
Athozus 2023-04-26 12:11:27 +02:00 committed by GitHub
parent 1a84c66346
commit 7449aaca52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 6 deletions

View file

@ -2,6 +2,9 @@
function mail.show_mail_menu(playername, sortfield, sortdirection, filter)
local index = mail.selected_idxs.boxtab[playername] or 1
if not mail.selected_idxs.boxtab[playername] then
mail.selected_idxs.boxtab[playername] = 1
end
if index == 1 then
mail.show_inbox(playername, sortfield, sortdirection, filter)
elseif index == 2 then