Commit d1ba40d2 authored by Nicolas Jager's avatar Nicolas Jager

lookup : do during an incomming call

- does a lookup adress to update information about the contact.

Change-Id: Ida380de59a67b9e868192d9028c97e22e26551b7
Tuleap: #790
parent 2a1fb2c7
......@@ -99,6 +99,7 @@ SmartPanel::SmartPanel()
return;
}
RingD::instance->lookUpAddress(from);
contact->_accountIdAssociated = accountId;
auto item = SmartPanelItemsViewModel::instance->findItem(contact);
......@@ -1403,8 +1404,11 @@ void RingClientUWP::Views::SmartPanel::OnregisteredNameFound(RingClientUWP::Look
/* open the text message page */
auto item = SmartPanelItemsViewModel::instance->findItem(contact);
SmartPanelItemsViewModel::instance->_selectedItem = item;
summonMessageTextPage();
//if (item->_callStatus != CallStatus::INCOMING_RINGING) {// refacto : do something better
// SmartPanelItemsViewModel::instance->_selectedItem = item;
// summonMessageTextPage();
//}
}
break;
case LookupStatus::INVALID_NAME:
......@@ -1421,8 +1425,11 @@ void RingClientUWP::Views::SmartPanel::OnregisteredNameFound(RingClientUWP::Look
/* open the message text with the contact already recorder*/
item = SmartPanelItemsViewModel::instance->findItem(contactAlreadyRecorded);
SmartPanelItemsViewModel::instance->_selectedItem = item;
summonMessageTextPage();
//if (item->_callStatus != CallStatus::INCOMING_RINGING) { // refacto : do something better
// SmartPanelItemsViewModel::instance->_selectedItem = item;
// summonMessageTextPage();
//}
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment