mirror of
https://github.com/mt-mods/mail.git
synced 2025-04-30 08:21:44 -04:00
add check for an ancient issue with missing to
field
This commit is contained in:
parent
d9fcd65066
commit
b95602a328
1 changed files with 2 additions and 1 deletions
|
@ -66,7 +66,8 @@ function mail.migrate_messages_v2_to_v3()
|
|||
break
|
||||
end
|
||||
end
|
||||
if new_msg then
|
||||
-- add if valid and "to" field populated (missing in ancient storage formats)
|
||||
if new_msg and msg.to then
|
||||
local msg_table = {
|
||||
sender = msg.sender,
|
||||
to = msg.to,
|
||||
|
|
Loading…
Add table
Reference in a new issue