mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 08:21:44 -04:00
Remove index variable verification on mark read/unread buttons since they are necessarily clicked on inbox view
This commit is contained in:
parent
61d70e427e
commit
dd145e621a
1 changed files with 2 additions and 10 deletions
8
gui.lua
8
gui.lua
|
@ -490,11 +490,7 @@ function mail.handle_receivefields(player, formname, fields)
|
|||
mail.setMessages(name, messages)
|
||||
end
|
||||
|
||||
if boxtab_index == 1 then
|
||||
mail.show_inbox(name)
|
||||
elseif boxtab_index == 2 then
|
||||
mail.show_sent(name)
|
||||
end
|
||||
|
||||
elseif fields.markunread then
|
||||
if messages[selected_idxs.messages[name]] then
|
||||
|
@ -503,11 +499,7 @@ function mail.handle_receivefields(player, formname, fields)
|
|||
mail.setMessages(name, messages)
|
||||
end
|
||||
|
||||
if boxtab_index == 1 then
|
||||
mail.show_inbox(name)
|
||||
elseif boxtab_index == 2 then
|
||||
mail.show_sent(name)
|
||||
end
|
||||
|
||||
elseif fields.new then
|
||||
mail.show_compose(name)
|
||||
|
|
Loading…
Add table
Reference in a new issue