@vgroup/dialbox 0.4.79 → 0.4.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3694,6 +3694,7 @@ class DialboxComponent {
|
|
|
3694
3694
|
let contact = this.contactInfo;
|
|
3695
3695
|
if (contact.number) {
|
|
3696
3696
|
this.isSmartDialCall = false;
|
|
3697
|
+
this.dialedNumber = contact.number;
|
|
3697
3698
|
if (contact.isDialFromHistory) {
|
|
3698
3699
|
//handle dialing from history page
|
|
3699
3700
|
if (contact.callerId == 'smartDialing') {
|
|
@@ -3843,10 +3844,14 @@ class DialboxComponent {
|
|
|
3843
3844
|
// emit current number whenever input changes
|
|
3844
3845
|
this.numberDialed.emit(this.dialedNumber);
|
|
3845
3846
|
if (inputVal.length > 2) {
|
|
3846
|
-
this.filteredContactList =
|
|
3847
|
+
this.filteredContactList = [];
|
|
3848
|
+
this.contactList.forEach(contact => {
|
|
3847
3849
|
const fullName = `${contact.firstName} ${contact.middleName} ${contact.lastName}`.toLowerCase();
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
+
if (fullName.includes(this.sanitizedNum.toLowerCase()) || contact.numbersList.some((num) => num.number.includes(this.sanitizedNum))) {
|
|
3851
|
+
this.filteredContactList.push(contact);
|
|
3852
|
+
}
|
|
3853
|
+
});
|
|
3854
|
+
this.filteredContactList = this.filteredContactList.slice(0, 2);
|
|
3850
3855
|
}
|
|
3851
3856
|
else {
|
|
3852
3857
|
this.filteredContactList = [];
|