#114: Presence and chat in wengo account login ?
-----------------------+----------------------------------------------------
Reporter: ahgindia | Owner: vadim
Type: defect | Status: new
Priority: major | Milestone: QuteCom 2.2-RC2
Component: misc | Version: 2.2-RC3
Resolution: | Keywords: wengo account, presence, chat
-----------------------+----------------------------------------------------
Comment(by laurent):
>>IMContact imContact(EnumIMProtocol::IMProtocolWengo, wengoAddress);
>>contact.addIMContact(imContact);
>>IMAccount * imAccount =
userProfile->getIMAccountManager().getIMAccount(imContact.getIMAccountId());
I this step imContact.getIMAccountId() will return a wrong value because
you have not positioned IMAccount in IMContact :
Pass EnumIMProtocol::IMProtocolWengo to IMcontact constructor will not
chose the good IMAccount ...
To ceate a valid IMContact you need a valid IMaccount reference.
Maybe it can help :
std::vector<EnumIMProtocol::IMProtocol> protocols;
protocols.push_back(EnumIMProtocol::IMProtocolWengo);
IMAccountList imAccountList =
userProfile->getIMAccountManager().getIMAccountsOfProtocolVector(protocols);
if (imAccountList.size() > 0
{
*imAccountList.begin();
}
--
Ticket URL: <http://trac.qutecom.org/ticket/114#comment:8>
QuteCom <http://trac.qutecom.org>
_______________________________________________
QuteCom-dev mailing list
[email protected]
http://lists.qutecom.org/mailman/listinfo/qutecom-dev