Skip to content

Commit

Permalink
Replaced open calendar with initialize event invites
Browse files Browse the repository at this point in the history
  • Loading branch information
Serkan Yazıcıoğlu committed Jul 25, 2024
1 parent 43e54bc commit b2c8bd1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -424,18 +424,16 @@ f:SetScript("OnEvent", function(self, event, arg1, arg2)
isCalendarOpened = true;

if (isInitialLogin) then
Core:Debug("Opening Calendar");
C_Calendar.OpenCalendar();
persistentWorkQueue:addTask(function()
Core:InitializeEventInvites();
end, nil, 5);
else
Core:Debug("Triggering event invites for reload");
Core:InitializeEventInvites();
end

if (openRaidLib) then
openRaidLib.RequestKeystoneDataFromGuild();
end
--C_Calendar.GetNumDayEvents(0, 1)
--workQueue:addTask(function() Core:Debug("Opening Calendar") C_Calendar.OpenCalendar() C_Calendar.GetNumDayEvents(0, 1) C_Calendar.GetGuildEventInfo(0) end, nil, 30)
elseif event == "GUILD_ROSTER_UPDATE" then
Core:SetRosterInfo();
elseif event == "CALENDAR_UPDATE_EVENT_LIST" then
Expand Down Expand Up @@ -2021,7 +2019,7 @@ function Core:InitializeEventInvites()
if (GOW.DB.profile.guilds[guildKey].eventsRefreshTime and ns.UPCOMING_EVENTS.exportTime and ns.UPCOMING_EVENTS.exportTime < GOW.DB.profile.guilds[guildKey].eventsRefreshTime) then
isEventProcessCompleted = true;

Core:PrintMessage("Last imported data is already processed. Skipping RSVP process...");
Core:PrintMessage("The most recently imported data has already been processed, the RSVP synchronization will be skipped...");
else
Core:Debug("Event attendance initial process started!");

Expand Down

0 comments on commit b2c8bd1

Please sign in to comment.