Skip to content
Snippets Groups Projects
Commit 39b9cf96 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

call: add toUsername to call details

This allow client to differentiate between incoming 1:1 call and
call swarm from one contact

Change-Id: I42ac6f85659fefe9501e8dfe01e07a003ddd503d
parent 3b4985bf
Branches
No related tags found
No related merge requests found
...@@ -377,6 +377,7 @@ Call::getDetails() const ...@@ -377,6 +377,7 @@ Call::getDetails() const
{libjami::Call::Details::CONF_ID, conference ? conference->getConfId() : ""}, {libjami::Call::Details::CONF_ID, conference ? conference->getConfId() : ""},
{libjami::Call::Details::TIMESTAMP_START, std::to_string(timestamp_start_)}, {libjami::Call::Details::TIMESTAMP_START, std::to_string(timestamp_start_)},
{libjami::Call::Details::ACCOUNTID, getAccountId()}, {libjami::Call::Details::ACCOUNTID, getAccountId()},
{libjami::Call::Details::TO_USERNAME, toUsername()},
{libjami::Call::Details::AUDIO_MUTED, {libjami::Call::Details::AUDIO_MUTED,
std::string(bool_to_str(isCaptureDeviceMuted(MediaType::MEDIA_AUDIO)))}, std::string(bool_to_str(isCaptureDeviceMuted(MediaType::MEDIA_AUDIO)))},
{libjami::Call::Details::VIDEO_MUTED, {libjami::Call::Details::VIDEO_MUTED,
......
...@@ -52,6 +52,7 @@ constexpr static char DISPLAY_NAME[] = "DISPLAY_NAME"; ...@@ -52,6 +52,7 @@ constexpr static char DISPLAY_NAME[] = "DISPLAY_NAME";
constexpr static char CALL_STATE[] = "CALL_STATE"; constexpr static char CALL_STATE[] = "CALL_STATE";
constexpr static char CONF_ID[] = "CONF_ID"; constexpr static char CONF_ID[] = "CONF_ID";
constexpr static char TIMESTAMP_START[] = "TIMESTAMP_START"; constexpr static char TIMESTAMP_START[] = "TIMESTAMP_START";
constexpr static char TO_USERNAME[] = "TO_USERNAME";
constexpr static char ACCOUNTID[] = "ACCOUNTID"; constexpr static char ACCOUNTID[] = "ACCOUNTID";
constexpr static char PEER_HOLDING[] = "PEER_HOLDING"; constexpr static char PEER_HOLDING[] = "PEER_HOLDING";
constexpr static char AUDIO_MUTED[] = "AUDIO_MUTED"; constexpr static char AUDIO_MUTED[] = "AUDIO_MUTED";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment