Skip to content

Commit 24f7e58

Browse files
committed
fix(phone): ensure dnis is resolved before stopping attr sync
1 parent b7ba9ea commit 24f7e58

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/models/phone/AgentClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ export default class AgentClient extends Model {
314314
});
315315
await AgentClient.store().dispatch('phone.streams/setHeartbeatTime');
316316
if (this.currentContact) {
317-
if (!this.currentContact.hasResolvedCases) {
317+
if (!this.currentContact.isReady) {
318318
Contact.syncAttributes(this.currentContact.contactId);
319319
}
320320
}

src/use/phone/useContact.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default () => {
102102
if (
103103
callPending.value &&
104104
currentContact.value &&
105-
!currentContact.value.hasResolvedCases
105+
!currentContact.value.isReady
106106
) {
107107
Contact.syncAttributes(currentContact.value.contactId);
108108
}
@@ -121,10 +121,10 @@ export default () => {
121121
) {
122122
syncDuration.stop();
123123
}
124-
if (currentContact.value && currentContact.value.hasResolvedCases) {
124+
if (currentContact.value && currentContact.value.isReady) {
125125
syncAttributes.stop();
126126
}
127-
if (currentContact.value && !currentContact.value.hasResolvedCases) {
127+
if (currentContact.value && !currentContact.value.isReady) {
128128
syncAttributes.start();
129129
}
130130
},

0 commit comments

Comments
 (0)