mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 16:31:43 -04:00
Replace inbox by sent
This commit is contained in:
parent
911c0134cf
commit
47f10f3f38
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
if #mail.selected_idxs.sent[name] >= #getOutbox() then -- if selection is full
|
if #mail.selected_idxs.sent[name] >= #getOutbox() then -- if selection is full
|
||||||
mail.selected_idxs.sent[name] = {}
|
mail.selected_idxs.sent[name] = {}
|
||||||
else
|
else
|
||||||
mail.selected_idxs.inbox[name] = {} -- reset to avoid duplicates
|
mail.selected_idxs.sent[name] = {} -- reset to avoid duplicates
|
||||||
mail.selected_idxs.multipleselection[name] = true
|
mail.selected_idxs.multipleselection[name] = true
|
||||||
for _, msg in ipairs(getOutbox()) do
|
for _, msg in ipairs(getOutbox()) do
|
||||||
table.insert(mail.selected_idxs.sent[name], msg.id)
|
table.insert(mail.selected_idxs.sent[name], msg.id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue