Skip to content

Commit

Permalink
Merge pull request #225 from takenet/feature/621796-hide-record-bubble
Browse files Browse the repository at this point in the history
 Fix calls provider check
  • Loading branch information
leonardogbr authored Mar 25, 2024
2 parents 8f0895a + ca42f38 commit 9e2afab
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/BlipCallsEndCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ export default {
[blipCallsStatus.cancel]: this.cancelStatusMsg,
[blipCallsStatus.noAnswer]: this.notAnsweredStatusMsg,
[blipCallsStatus.progress]: this.failedStatusMsg,
[blipCallsStatus.unknown]: this.notAnsweredStatusMsg
[blipCallsStatus.unknown]: this.notAnsweredStatusMsg,
[blipCallsStatus.failed]: this.cancelStatusMsg,
[blipCallsStatus.completed]: this.successStatusMsg
}
return this.sanitize(statusMessage[this.document.status])
Expand All @@ -292,15 +294,17 @@ export default {
return this.document.status.toLowerCase()
},
isMobcall: function() {
return this.document.provider.toLowerCase() === 'mobcall'
return this.document.provider ? this.document.provider.toLowerCase() === 'mobcall' : true
},
isOutboundCall: function() {
return this.document.direction.toLowerCase() === 'outbound'
return this.document.direction ? this.document.direction.toLowerCase() === 'outbound' : true
}
},
methods: {
async refreshMediaUrl() {
try {
if (!this.isMobcall) return
if (
this.document.media &&
this.document.media.uri
Expand Down

0 comments on commit 9e2afab

Please sign in to comment.