Skip to content

Commit

Permalink
Fixes #71
Browse files Browse the repository at this point in the history
  • Loading branch information
Wutname1 committed Aug 7, 2018
1 parent 35823f0 commit 891fa24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Components/MailOpenAll.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ end
function module:ProcessNext()
local curFirstMailDaysLeft = select(7, GetInboxHeaderInfo(1))
if curFirstMailDaysLeft ~= 0 and curFirstMailDaysLeft ~= firstMailDaysLeft then
return self:OpenAll(true)
return -- self:OpenAll(true)
end

if mailIndex > 0 then
Expand Down Expand Up @@ -272,7 +272,7 @@ function module:ProcessNext()
local numItems, totalItems = GetInboxNumItems()
if numUnshownItems ~= totalItems - numItems then
-- We will Open All again if the number of unshown items is different
return self:OpenAll(true) -- tail call
return --self:OpenAll(true) -- tail call
elseif totalItems > numItems and numItems < MAX_MAIL_SHOWN then
-- We only want to refresh if there's more items to show
SUI:Print(L['Not all messages are shown, refreshing mailbox soon to continue Open All...'])
Expand Down

0 comments on commit 891fa24

Please sign in to comment.