Example #1
0
bool IMAccountManager::setImAccountUserNetworkId( const IMAccount & imAccount )
{
	RecursiveMutex::ScopedLock lock(_mutex);

	bool result = false;
	IMAccount* pAcct = _imAccountList.findByAccount( imAccount );

	if ( pAcct )
	{
		pAcct->setUserNetworkId( imAccount.getUserNetworkId() );
		result = true;
	}

	return result;
}