//
// GJRequestCell::onViewFriendRequest from 0x61ca20 to 0x61ca84 (100 bytes)
//
// 3 xrefs:
// > ??> @ 0x52dd0
// > GJRequestCell::loadFromScore @ 0x61c46c
// > ??> @ 0x122aab8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJRequestCell::onViewFriendRequest(GJRequestCell *a1, cocos2d::CCObject *a2)
{
GJUserScore *m_score; // x1
GameLevelManager *v4; // x0
GJFriendRequest *v5; // x20
FriendRequestPopup *v6; // x0
m_score = a1->m_score;
if ( m_score && m_score->m_accountID > 0 )
{
v4 = GameLevelManager::sharedState();
v5 = GameLevelManager::friendRequestFromAccountID(v4, a1->m_score->m_accountID);
if ( v5 )
{
GJRequestCell::markAsRead(a1);
v6 = FriendRequestPopup::create(v5);
v6->show(v6);
}
}
}