This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
What steps will reproduce the problem?1. Go to a connected realm2. Invite two players with the same toon name (but different realm) to one calendar event3. Invite one of the players to group
What is the expected output? What do you see instead?The event character list shows both players as online and in-group when in fact only one is.
What version of the product are you using?dev head
Please provide any additional information below.
This bug arises when an ambiguous toon in an event list is invited to group, becauseUnitInRaid(barename) will return true for multiple versions of the ambiguous toonname, so all are shown as online and in group, when in fact only one of thetoons is online/in-group. Also, UnitInRaid("name-MyRealm") always fails, so thatAPI is basically useless for getting unambiguous answers in the presence ofcross-realm group members sharing a name. Fixing this problem would requiremaintaining our own copy of the group roster with fully-qualified names, andreplacing all the calls to UnitInRaid/UnitInParty with fully-qualified lookupsto ensure we are checking the correct fully-qualified player name.
It's probably not worth the trouble to fix this right now(?), but if the BlizzardCalendar is ever expanded to allow inviting players on other non-connected realms,that would increase the chances of ambiguous name conflicts in an eventand would motivate a fix.
Hm, sounds tricky. I'm quite surprised UnitInRaid("name-MyRealm") does nothing. The API is sometimes a total mess in my opinion.
Oh well. If you do get around to fixing this, you can tag a new version. I've been using the x.y.z scheme as bumping "x" for major rewrites, "y" for new features optionally with bugfixes, and "z" for just bugfix releases.
Thanks for taking the time to investigate this!
To post a comment, please login or register a new account.