Actually make that:
Code:
function MailInbox:OnMailRemoved(mailId)
if self.control:IsHidden() then
if AreId64sEqual(mailId, self.dirtyMail) then
self.dirtyMail = nil
end
if AreId64sEqual(mailId, self.mailId) then
self.mailId = nil
end
end
self.reportedMailIds[zo_getSafeId64Key(mailId)] = nil
self:RefreshData()
end