mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-03 20:03:50 +00:00
fix: group invite popup never showing (hasPendingGroupInvite stale getter)
hasPendingGroupInvite() and getPendingInviterName() were inline getters reading GameHandler's stale copies. SocialHandler owns the canonical pendingGroupInvite/pendingInviterName state. Players were auto-added to groups without seeing the accept/decline popup. Now delegates to socialHandler_.
This commit is contained in:
parent
1af1c66b04
commit
6edcad421b
2 changed files with 10 additions and 2 deletions
|
|
@ -9766,6 +9766,14 @@ bool GameHandler::isInGuild() const {
|
|||
return ch && ch->hasGuild();
|
||||
}
|
||||
|
||||
bool GameHandler::hasPendingGroupInvite() const {
|
||||
return socialHandler_ ? socialHandler_->hasPendingGroupInvite() : pendingGroupInvite;
|
||||
}
|
||||
const std::string& GameHandler::getPendingInviterName() const {
|
||||
if (socialHandler_) return socialHandler_->getPendingInviterName();
|
||||
return pendingInviterName;
|
||||
}
|
||||
|
||||
const std::string& GameHandler::getGuildName() const {
|
||||
if (socialHandler_) return socialHandler_->getGuildName();
|
||||
static const std::string empty;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue