[EGD-2475] [WIP] SMS options connected sms, call, add contact callbacks

This commit is contained in:
Adam Dobrowolski
2020-01-09 11:42:58 +01:00
committed by pholat
parent a45e0779bd
commit 0bfc5c312f
5 changed files with 58 additions and 13 deletions

View File

@@ -191,9 +191,17 @@ namespace gui
LOG_INFO("Phonebook sms send request!");
// TODO agree what should be used and how. Now Request have only contact,
// maybe it should have additional info - which nr to use and how to show it
LOG_DEBUG("SEND SMS TO: %s %s %s %s %s", pdata->contact->number.c_str(), pdata->contact->numbers[0].numberE164.c_str(),
pdata->contact->numbers[0].numberUser.c_str(), pdata->contact->primaryName.c_str(), pdata->contact->alternativeName.c_str());
setTitle(pdata->contact->numbers[0].numberUser);
if (pdata->contact->numbers.size() != 0)
{
LOG_DEBUG("SEND SMS TO: %s %s %s %s %s", pdata->contact->number.c_str(), pdata->contact->numbers[0].numberE164.c_str(),
pdata->contact->numbers[0].numberUser.c_str(), pdata->contact->primaryName.c_str(), pdata->contact->alternativeName.c_str());
setTitle(pdata->contact->numbers[0].numberUser);
}
else
{
// TODO handle error better
setTitle("NO CONTACT");
}
}
}
{