mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
Show all call logs : Aborted calls and other devices calls
- When Aborted : print as a normal call - When Early Aborted : print as missed - When Accepted on other device : print as a normal call - When Declined on other device : print as declined
This commit is contained in:
parent
4cb1b19de5
commit
9f1ae82498
3 changed files with 17 additions and 3 deletions
|
|
@ -700,11 +700,9 @@ void ChatModel::insertCall (const shared_ptr<linphone::CallLog> &callLog) {
|
|||
switch (status) {
|
||||
case linphone::Call::Status::Aborted:
|
||||
case linphone::Call::Status::EarlyAborted:
|
||||
return; // Ignore aborted calls.
|
||||
|
||||
case linphone::Call::Status::AcceptedElsewhere:
|
||||
case linphone::Call::Status::DeclinedElsewhere:
|
||||
return; // Ignore accepted calls on other device.
|
||||
|
||||
case linphone::Call::Status::Success:
|
||||
case linphone::Call::Status::Missed:
|
||||
|
|
|
|||
|
|
@ -51,7 +51,11 @@ public:
|
|||
enum CallStatus {
|
||||
CallStatusDeclined = int(linphone::Call::Status::Declined),
|
||||
CallStatusMissed = int(linphone::Call::Status::Missed),
|
||||
CallStatusSuccess = int(linphone::Call::Status::Success)
|
||||
CallStatusSuccess = int(linphone::Call::Status::Success),
|
||||
CallStatusAborted = int(linphone::Call::Status::Aborted),
|
||||
CallStatusEarlyAborted = int(linphone::Call::Status::EarlyAborted),
|
||||
CallStatusAcceptedElsewhere = int(linphone::Call::Status::AcceptedElsewhere),
|
||||
CallStatusDeclinedElsewhere = int(linphone::Call::Status::DeclinedElsewhere)
|
||||
};
|
||||
Q_ENUM(CallStatus);
|
||||
|
||||
|
|
|
|||
|
|
@ -23,6 +23,18 @@ Row {
|
|||
if (status === ChatModel.CallStatusMissed) {
|
||||
return $chatEntry.isOutgoing ? 'missed_outgoing_call' : 'missed_incoming_call'
|
||||
}
|
||||
if (status === ChatModel.CallStatusAborted) {
|
||||
return $chatEntry.isOutgoing ? 'outgoing_call' : 'incoming_call'
|
||||
}
|
||||
if (status === ChatModel.CallStatusEarlyAborted) {
|
||||
return $chatEntry.isOutgoing ? 'missed_outgoing_call' : 'missed_incoming_call'
|
||||
}
|
||||
if (status === ChatModel.CallStatusAcceptedElsewhere) {
|
||||
return $chatEntry.isOutgoing ? 'outgoing_call' : 'incoming_call'
|
||||
}
|
||||
if (status === ChatModel.CallStatusDeclinedElsewhere) {
|
||||
return $chatEntry.isOutgoing ? 'declined_outgoing_call' : 'declined_incoming_call'
|
||||
}
|
||||
|
||||
return 'unknown_call_event'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue