mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-04 13:17:08 -04:00
[EGD-2475] [WIP] SMS options connected sms, call, add contact callbacks
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user