View Single Post
06/18/16, 02:15 PM   #4
Lodur
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 108
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

Last edited by Lodur : 06/18/16 at 11:15 PM. Reason: Merlight's reminder about AreId64sEqual
  Reply With Quote