Skip to content

Commit

Permalink
v1.6.1 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Serkan Yazıcıoğlu committed Sep 26, 2024
1 parent 5549fa9 commit aa30cfb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
17 changes: 9 additions & 8 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1463,13 +1463,6 @@ function Core:CheckEventInvites()

if (guildName == upcomingEvent.guild and realmName == upcomingEvent.guildRealmNormalized and regionId == upcomingEvent.guildRegionId) then
Core:Debug("Event found for guild: " .. upcomingEvent.titleWithKey);
local isCurrentCharacterInvited = false;
for m = 1, upcomingEvent.totalMembers do
local currentInviteMember = upcomingEvent.inviteMembers[m];
if (currentCharacterInvite == currentInviteMember.name .. "-" .. currentInviteMember.realmNormalized) then
isCurrentCharacterInvited = true;
end
end

if (not processedEvents:contains(upcomingEvent.titleWithKey)) then
local eventIndex = Core:searchForEvent(upcomingEvent);
Expand All @@ -1481,8 +1474,16 @@ function Core:CheckEventInvites()
workQueue:clearTasks();
return;
elseif (eventIndex == -1) then
if (isCurrentCharacterInvited) then
if (upcomingEvent.calendarType == 1) then
hasAnyUninvitedEvent = true;
else
for m = 1, upcomingEvent.totalMembers do
local currentInviteMember = upcomingEvent.inviteMembers[m];
if (currentInviteMember and currentCharacterInvite == currentInviteMember.name .. "-" .. currentInviteMember.realmNormalized) then
hasAnyUninvitedEvent = true;
break;
end
end
end
elseif (eventIndex > 0) then
local dayEvent = C_Calendar.GetDayEvent(0, upcomingEvent.day, eventIndex);
Expand Down
2 changes: 1 addition & 1 deletion GuildsOfWoW-Cata.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Notes: Guilds of WoW guild herald for Classic Progression servers
## X-Website: https://guildsofwow.com
## Author: Nhea
## Version: 1.6.0
## Version: 1.6.1
## SavedVariables: GoWDB
## IconTexture: Interface\Icons\vas_guildfactionchange

Expand Down
2 changes: 1 addition & 1 deletion GuildsOfWoW-Classic.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Notes: Guilds of WoW guild herald for Classic Era servers
## X-Website: https://guildsofwow.com
## Author: Nhea
## Version: 1.6.0
## Version: 1.6.1
## SavedVariables: GoWDB

embed.xml
Expand Down
2 changes: 1 addition & 1 deletion GuildsOfWoW.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Notes: Guilds of WoW guild herald for retail World of Warcraft
## X-Website: https://guildsofwow.com
## Author: Nhea
## Version: 1.6.0
## Version: 1.6.1
## SavedVariables: GoWDB
## OptionalDeps: AstralKeys
## AddonCompartmentFunc: GuildsOfWow_OnAddonButtonClick
Expand Down

0 comments on commit aa30cfb

Please sign in to comment.