Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MA-1479] Use user uuid to check for callLog destination #783

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/domain/CallLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ export default class CallLog {

static parseNew(plain: CallLogResponse, session: Session): CallLog {
const callLog: CallLog = CallLog.parse(plain);
// @TODO: FIXME add verification declined vs missed call
callLog.newMissedCall = session && session.hasExtension((plain.requested_extension || plain.destination_extension) as string) && !plain.answered;
callLog.newMissedCall = session && plain.destination_user_uuid === session.uuid && !plain.answered;
return callLog;
}

Expand Down Expand Up @@ -203,7 +202,7 @@ export default class CallLog {
}

isAnOutgoingCall(session: Session): boolean {
console.warn(`@wazo/sdk
console.warn(`@wazo/sdk
CallLog.isAnOutgoingcall(session) method is obsolete.
Please use CallLog.isOutgoing(session).
`);
Expand Down